compiler warning cleanup: is_signed_type: compare -1 to 1
[lttng-ust.git] / include / lttng / ust-tracer.h
index 9593609db348b845242e06dcf27648072175ac32..410be46b0ca9831b760c15254909e02bd4eed68d 100644 (file)
 #include <type_traits>
 #endif
 
+#include <lttng/ust-arch.h>
 #include <lttng/ust-compiler.h>
 #include <lttng/ust-config.h>
 #include <lttng/ust-version.h>
 
-#ifndef LTTNG_UST_HAVE_EFFICIENT_UNALIGNED_ACCESS
+#ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
 /* Align data on its natural alignment */
 #define RING_BUFFER_ALIGN
 #endif
@@ -34,7 +35,7 @@
 #define lttng_alignof(type)    1
 #endif
 
-#define lttng_is_signed_type(type)           ((type) -1 < (type) 0)
+#define lttng_is_signed_type(type)           ((type) -1 < (type) 1)
 
 /*
  * This macro adds a compilation assertion that CTF arrays and sequences
This page took 0.023256 seconds and 4 git commands to generate.