diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-10 21:36:00 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-10 21:37:20 +0200 |
| commit | c22007cc4be9b731d97006b983538388c4b36033 (patch) | |
| tree | babca238e7be3fbc111d62318e1f919107a37e2b /src/util | |
| parent | Cleaner code (diff) | |
| download | blind-c22007cc4be9b731d97006b983538388c4b36033.tar.gz blind-c22007cc4be9b731d97006b983538388c4b36033.tar.bz2 blind-c22007cc4be9b731d97006b983538388c4b36033.tar.xz | |
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ #define MAX(A, B) ((A) > (B) ? (A) : (B)) #define CLIP(A, B, C) ((B) < (A) ? (A) : (B) > (C) ? (C) : (B)) #define STRLEN(STR) (sizeof(STR) - 1) -#define INTSTRLEN(TYPE) ((sizeof(TYPE) == 1 ? 3 : (5 * sizeof(TYPE) / 2)) + ((TYPE)-1 < 0)) +#define INTSTRLEN(TYPE) ((sizeof(TYPE) == 1 ? 3 : (5 * sizeof(TYPE) / 2)) + ((TYPE)-1 < 1)) #define USAGE(SYNOPSIS)\ static void usage(void)\ |
