Permalink
Browse files

Adding an explicit cast.

On some platforms (ie AIX) comparisions of ((int)~0) == (255) was
evaulating as we want.

In particular log_timestamp was being treated as always false even
when it was true (the default).
  • Loading branch information...
1 parent 6cf2ba4 commit 19742a4a8d1d3beb736157727ffef545cad9f53b @ssinger ssinger committed Aug 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/slon/slon.h
View
@@ -33,10 +33,10 @@
#define SLON_MEMDEBUG 1
#ifndef false
-#define false 0
+#define false ((bool)0)
#endif
#ifndef true
-#define true (~false)
+#define true ((bool)~0)
#endif

0 comments on commit 19742a4

Please sign in to comment.