Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
FreeBSD fix
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko authored and heiko committed Oct 7, 2020
1 parent 0c47c14 commit 22ec492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ afl_ret_t bind_to_cpu() {
oncpu = procs[i].ki_oncpu;
if (oncpu == -1) oncpu = procs[i].ki_lastcpu;

if (oncpu != -1 && oncpu < sizeof(cpu_used) && procs[i].ki_pctcpu > 60)
if (oncpu != -1 && (size_t)oncpu < sizeof(cpu_used) && procs[i].ki_pctcpu > 60)
cpu_used[oncpu] = 1;

#elif defined(__DragonFly__)
Expand Down

0 comments on commit 22ec492

Please sign in to comment.