aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-01-04 21:25:53 +0100
committerhexcoder- <heiko@hexco.de>2021-01-04 21:25:53 +0100
commit251e72f13654b5259f57075c7dffcc3a43372449 (patch)
tree8c32ec71237e7f329e288a114405a71971892ff3 /include
parentc6e038fe25789caa8da777f53154de1bd7b4e178 (diff)
downloadAFLplusplus-251e72f13654b5259f57075c7dffcc3a43372449.tar.gz
mehr code cleanup
Diffstat (limited to 'include')
-rw-r--r--include/config.h2
-rw-r--r--include/types.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 7c75e9c9..ba62d4c6 100644
--- a/include/config.h
+++ b/include/config.h
@@ -380,7 +380,7 @@
after changing this - otherwise, SEGVs may ensue. */
#define MAP_SIZE_POW2 16
-#define MAP_SIZE (1 << MAP_SIZE_POW2)
+#define MAP_SIZE (1U << MAP_SIZE_POW2)
/* Maximum allocator request size (keep well under INT_MAX): */
diff --git a/include/types.h b/include/types.h
index 39f599a0..3e3bc953 100644
--- a/include/types.h
+++ b/include/types.h
@@ -50,7 +50,7 @@ typedef uint32_t u32;
#define FS_OPT_SHDMEM_FUZZ 0x01000000
#define FS_OPT_OLD_AFLPP_WORKAROUND 0x0f000000
// FS_OPT_MAX_MAPSIZE is 8388608 = 0x800000 = 2^23 = 1 << 22
-#define FS_OPT_MAX_MAPSIZE ((0x00fffffe >> 1) + 1)
+#define FS_OPT_MAX_MAPSIZE ((0x00fffffeU >> 1) + 1)
#define FS_OPT_GET_MAPSIZE(x) (((x & 0x00fffffe) >> 1) + 1)
#define FS_OPT_SET_MAPSIZE(x) \
(x <= 1 || x > FS_OPT_MAX_MAPSIZE ? 0 : ((x - 1) << 1))