From 57d476b10525f06f65f05ddc166bf4e16b1e4025 Mon Sep 17 00:00:00 2001 From: Norman Ashley Date: Tue, 19 Nov 2024 12:37:42 -0500 Subject: [PATCH] Fixed compile issue on Mac Signed-off-by: Norman Ashley --- src/sig_stfl/lms/external/hss_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sig_stfl/lms/external/hss_alloc.c b/src/sig_stfl/lms/external/hss_alloc.c index 90bdcc853..b17df2b90 100644 --- a/src/sig_stfl/lms/external/hss_alloc.c +++ b/src/sig_stfl/lms/external/hss_alloc.c @@ -381,7 +381,7 @@ signed long initial_mem_target = mem_target; /* DEBUG HACK */ /* This would use more memory than we'd like; accept it if */ /* either we have no solution, or it uses less memory than what */ /* we've seen */ - if (search_status != nothing_yet && mem > best_mem) continue; + if (search_status != nothing_yet && mem > (signed long)best_mem) continue; /* This solution is the best so far (however, it doesn't fit) */ search_status = found_overbudget; @@ -394,7 +394,7 @@ signed long initial_mem_target = mem_target; /* DEBUG HACK */ /* We've already seen a faster solution */ continue; } - if (sub_levels == best_levels && mem > best_mem) { + if (sub_levels == best_levels && mem > (signed long)best_mem) { /* We've already seen an equally fast solution that */ /* uses less memory */ continue;