Skip to content

Commit

Permalink
lib: Fix compiler warning about mixing boolean with multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and Timo Sirainen committed Aug 17, 2017
1 parent b12757f commit d31018c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/macros.h
Expand Up @@ -158,7 +158,7 @@

#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)) && !defined(__cplusplus)
# define COMPILE_ERROR_IF_TRUE(condition) \
(sizeof(char[1 - 2 * !!(condition)]) - 1)
(sizeof(char[1 - 2 * ((condition) ? 1 : 0)]) - 1)
#else
# define COMPILE_ERROR_IF_TRUE(condition) 0
#endif
Expand Down

0 comments on commit d31018c

Please sign in to comment.