diff options
author | van Hauser <vh@thc.org> | 2020-09-08 17:54:01 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-09-08 17:54:01 +0200 |
commit | ab744abc4b3c90bee355807e7b6e40ba86f23e74 (patch) | |
tree | 9e2ee0b3eaa4061ae42da8e6c382202585980ce6 /instrumentation/afl-compiler-rt.o.c | |
parent | 2802245da77062cdadb7d4ceb09d3d083761cf56 (diff) | |
download | afl++-ab744abc4b3c90bee355807e7b6e40ba86f23e74.tar.gz |
code-format
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 05e2d50d..0e8b97a2 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -38,8 +38,8 @@ #include <sys/wait.h> #include <sys/types.h> -#if ! __GNUC__ -#include "llvm/Config/llvm-config.h" +#if !__GNUC__ + #include "llvm/Config/llvm-config.h" #endif #ifdef __linux__ @@ -117,12 +117,12 @@ void __afl_trace(const u32 x) { u8 *p = &__afl_area_ptr[prev ^ x]; #if 1 /* enable for neverZero feature. */ -# if __GNUC__ - u8 c = __builtin_add_overflow (*p, 1, p); + #if __GNUC__ + u8 c = __builtin_add_overflow(*p, 1, p); *p += c; -# else + #else *p += 1 + ((u8)(1 + *p == 0); -# endif + #endif #else ++*p; #endif |