Fix type range comparison always false for 64-bit arch
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 16:49:53 +0000 (11:49 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 16:49:53 +0000 (11:49 -0500)
ltt-events.c: In function 'ltt_event_create':
ltt-events.c:498: warning: comparison is always false due to limited
range of data type

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/ltt-events.c

index 4a0981b630f14bc1691a3f943f86d51f139d37c7..40cf3f916ee4c0056f2cde795bb857f4920a5230 100644 (file)
@@ -495,7 +495,7 @@ int ltt_event_create(struct ltt_channel *chan,
        struct ltt_event *event;
        int ret = 0;
 
-       if (chan->used_event_id == -1UL) {
+       if (chan->used_event_id == -1U) {
                ret = -ENOMEM;
                goto full;
        }
This page took 0.026183 seconds and 4 git commands to generate.