about summary refs log tree commit diff
path: root/src/afl-performance.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-28 23:50:25 +0200
committervan Hauser <vh@thc.org>2020-06-28 23:50:25 +0200
commit6d0f086d9cb1b8eedbeb4c9654f9e44870460e8d (patch)
tree8409f4c7b85575e45465dcd85b40f4d2166231f7 /src/afl-performance.c
parentc25a602a0370f484e32adbf186290d2504cf3f12 (diff)
downloadafl++-6d0f086d9cb1b8eedbeb4c9654f9e44870460e8d.tar.gz
less problematic definitions
Diffstat (limited to 'src/afl-performance.c')
-rw-r--r--src/afl-performance.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/afl-performance.c b/src/afl-performance.c
index b3d30cbd..0832dc39 100644
--- a/src/afl-performance.c
+++ b/src/afl-performance.c
@@ -141,7 +141,11 @@ void long_jump(afl_state_t *afl) {
 /* we switch from afl's murmur implementation to xxh3 as it is 30% faster -
    and get 64 bit hashes instead of just 32 bit. Less collisions! :-) */
 
-u32 inline hash32(void *key, u32 len, u32 seed) {
+#ifdef _DEBUG
+u32 hash32(u8 *key, u32 len, u32 seed) {
+#else
+u32 inline hash32(u8 *key, u32 len, u32 seed) {
+#endif
 
   return (u32)XXH64(key, len, seed);