about summary refs log tree commit diff
path: root/include/debug.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-08-07 16:55:58 +0200
committerDominik Maier <domenukk@gmail.com>2020-08-07 16:55:58 +0200
commit22d3a5e90abd58c6a4bb68bf1b3f7ece8283f5bb (patch)
treee6bd88b59d83a426696dbb2850dee762d0a6f164 /include/debug.h
parent4a6d66d8c5dcbec8b5014ff0445d9292b3958e1d (diff)
downloadafl++-22d3a5e90abd58c6a4bb68bf1b3f7ece8283f5bb.tar.gz
enabled Wextra, fixed bugs
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..79b05c5f 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); \
                                                                \