]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix sign warning in jlibtool
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Nov 2022 21:10:43 +0000 (13:10 -0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Nov 2022 21:10:43 +0000 (13:10 -0800)
scripts/jlibtool.c

index 19e8e69591efe658946b60fcdd6b2361bed93d46..92c65bdfa77dcd7381d563ce024060417a2535ac 100644 (file)
@@ -2312,7 +2312,7 @@ static void generate_def_file(command_t *cmd)
                        export_args[num_export_args++] = "-o";
 
                        imp_len = strlen(cmd->basename) + 7;
-                       if (imp_len > sizeof(implib_file)) {
+                       if ((size_t)imp_len > sizeof(implib_file)) {
                        imp_too_long:
                                ERROR("imp file name too long, out of buffer space\n");
                                return;
@@ -2328,7 +2328,7 @@ static void generate_def_file(command_t *cmd)
                        }
 
                        imp_len += strlen(target->static_lib_ext) + 1;
-                       if (imp_len > sizeof(implib_file)) goto imp_too_long;
+                       if ((size_t) imp_len > sizeof(implib_file)) goto imp_too_long;
 
                        strcat(implib_file, ".");
                        strcat(implib_file, target->static_lib_ext);