compiler warning cleanup: is_signed_type: compare -1 to 1
[lttng-tools.git] / src / common / macros.h
index e28250f7ed20a7892600c161f6b0921ff10424d3..53f5f96c752061448a6f5d1fc629166db2f345a3 100644 (file)
@@ -85,7 +85,7 @@ void *zmalloc(size_t len)
 #endif
 #endif
 
-#define is_signed(type) (((type) (-1)) < 0)
+#define is_signed(type) (((type) -1) < (type) 1)
 
 /*
  * Align value to the next multiple of align. Returns val if it already is a
This page took 0.023008 seconds and 4 git commands to generate.