Skip to content

Commit

Permalink
Fixed compile issue on Mac
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ashley <nashley@cisco.com>
  • Loading branch information
ashman-p committed Nov 19, 2024
1 parent 764f62d commit 57d476b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sig_stfl/lms/external/hss_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 57d476b

Please sign in to comment.