diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-08-07 16:55:58 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-08-07 16:55:58 +0200 |
commit | 22d3a5e90abd58c6a4bb68bf1b3f7ece8283f5bb (patch) | |
tree | e6bd88b59d83a426696dbb2850dee762d0a6f164 /src/afl-fuzz-stats.c | |
parent | 4a6d66d8c5dcbec8b5014ff0445d9292b3958e1d (diff) | |
download | afl++-22d3a5e90abd58c6a4bb68bf1b3f7ece8283f5bb.tar.gz |
enabled Wextra, fixed bugs
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 7b30b5ea..aeb290bd 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -890,12 +890,12 @@ void show_stats(afl_state_t *afl) { if (afl->cpu_aff >= 0) { SAYF("%s" cGRA "[cpu%03u:%s%3u%%" cGRA "]\r" cRST, spacing, - MIN(afl->cpu_aff, 999), cpu_color, MIN(cur_utilization, 999)); + MIN(afl->cpu_aff, 999), cpu_color, MIN(cur_utilization, (u32)999)); } else { SAYF("%s" cGRA " [cpu:%s%3u%%" cGRA "]\r" cRST, spacing, cpu_color, - MIN(cur_utilization, 999)); + MIN(cur_utilization, (u32)999)); } @@ -1081,7 +1081,7 @@ void show_init_stats(afl_state_t *afl) { if (afl->non_instrumented_mode && !(afl->afl_env.afl_hang_tmout)) { - afl->hang_tmout = MIN(EXEC_TIMEOUT, afl->fsrv.exec_tmout * 2 + 100); + afl->hang_tmout = MIN((u32)EXEC_TIMEOUT, afl->fsrv.exec_tmout * 2 + 100); } |