about summary refs log tree commit diff
path: root/include/debug.h
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-08-07 19:53:32 +0200
committerhexcoder- <heiko@hexco.de>2020-08-07 19:53:32 +0200
commit8551d8e48e18a5a50955945b5f73aff3cb492de5 (patch)
tree4e62bae271be851bd2e556d51e09197163814190 /include/debug.h
parent32558bc8072caa14ee670c6be40af4d183e8ffcc (diff)
parent934cdc32f4c828d6a8045e4096344601fe528a76 (diff)
downloadafl++-8551d8e48e18a5a50955945b5f73aff3cb492de5.tar.gz
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/debug.h b/include/debug.h
index d1bd971b..ae2946f0 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -281,7 +281,7 @@
 #define ck_write(fd, buf, len, fn)                            \
   do {                                                        \
                                                               \
-    u32 _len = (len);                                         \
+    s32 _len = (s32)(len);                                    \
     s32 _res = write(fd, buf, _len);                          \
     if (_res != _len) RPFATAL(_res, "Short write to %s", fn); \
                                                               \
@@ -290,7 +290,7 @@
 #define ck_read(fd, buf, len, fn)                              \
   do {                                                         \
                                                                \
-    u32 _len = (len);                                          \
+    s32 _len = (s32)(len);                                     \
     s32 _res = read(fd, buf, _len);                            \
     if (_res != _len) RPFATAL(_res, "Short read from %s", fn); \
                                                                \