]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add cast to shut up compiler
authorAlan T. DeKok <aland@freeradius.org>
Tue, 20 Apr 2021 10:11:44 +0000 (06:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Apr 2021 10:13:52 +0000 (06:13 -0400)
src/protocols/radius/encode.c

index 305f724aef06e83a69fbe438d33715b1bd72fc1e..cfc3aee3f0493b12131ee61f8c1a04fb6bc95262 100644 (file)
@@ -709,7 +709,7 @@ static ssize_t attr_fragment(fr_dbuff_t *data, size_t data_len, fr_dbuff_marker_
                FR_PROTO_HEX_DUMP(fr_dbuff_current(hdr), frag_len + hdr_len,
                                  "attr_fragment fragment %u/%u", i + 1, num_fragments);
 
-               fr_dbuff_advance(&frag_data, frag_len); /* Go to the start of the next fragment */
+               fr_dbuff_advance(&frag_data, (size_t) frag_len);        /* Go to the start of the next fragment */
                if (last) break;
 
                /*