about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-27 11:07:54 +0200
committervan Hauser <vh@thc.org>2020-05-27 11:07:54 +0200
commitb81df11d8a0dad4381e644b04afa1a38413ff833 (patch)
tree6046d5b1eb1cb45e1dd6133274210894e1fb1396 /include
parent9dd0b7c6de72100ceaf99bba3b0705f952b36de0 (diff)
downloadafl++-b81df11d8a0dad4381e644b04afa1a38413ff833.tar.gz
fix 64bit support for powerpc, risc, etc.
Diffstat (limited to 'include')
-rw-r--r--include/types.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/types.h b/include/types.h
index 95ca2689..d1e44617 100644
--- a/include/types.h
+++ b/include/types.h
@@ -64,13 +64,10 @@ typedef uint32_t u32;
    'unsigned long long' in <bits/types.h>, so everything checks out.
 
    But on 64-bit systems, it is #ifdef'ed in the same file as 'unsigned long'.
-   Now, it only happens in circumstances where the type happens to have the
-   expected bit width, *but* the compiler does not know that... and complains
-   about 'unsigned long' being unsafe to pass to %llu.
 
  */
 
-#if defined(__x86_64__) || defined(__aarch64__)
+#ifdef __LP64__
 typedef unsigned long long u64;
 #else
 typedef uint64_t u64;