diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 22:23:04 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 22:23:04 +0100 |
commit | 7f4b3a460a0b4f83e9039b57c033f6f43be08550 (patch) | |
tree | 103d54bd62478660e3639525f72ffd4b2d1a2d13 /instrumentation/afl-gcc-pass.so.cc | |
parent | 251e72f13654b5259f57075c7dffcc3a43372449 (diff) | |
download | afl++-7f4b3a460a0b4f83e9039b57c033f6f43be08550.tar.gz |
more code cleanup (instrumentation)
Diffstat (limited to 'instrumentation/afl-gcc-pass.so.cc')
-rw-r--r-- | instrumentation/afl-gcc-pass.so.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/afl-gcc-pass.so.cc b/instrumentation/afl-gcc-pass.so.cc index 25437609..7d9ccdc9 100644 --- a/instrumentation/afl-gcc-pass.so.cc +++ b/instrumentation/afl-gcc-pass.so.cc @@ -228,7 +228,7 @@ struct afl_pass : gimple_opt_pass { const bool neverZero; /* Count instrumented blocks. */ - int inst_blocks; + unsigned int inst_blocks; virtual unsigned int execute(function *fn) { @@ -931,7 +931,7 @@ int plugin_init(struct plugin_name_args * info, quiet = true; /* Decide instrumentation ratio. */ - int inst_ratio = 100; + unsigned int inst_ratio = 100U; if (char *inst_ratio_str = getenv("AFL_INST_RATIO")) if (sscanf(inst_ratio_str, "%u", &inst_ratio) != 1 || !inst_ratio || inst_ratio > 100) |