From 38eb0baa8a8b7bca7b1981e25ef09436d7eb5524 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 21 Feb 2012 11:49:53 -0500 Subject: [PATCH] Fix type range comparison always false for 64-bit arch 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 --- liblttng-ust/ltt-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust/ltt-events.c b/liblttng-ust/ltt-events.c index 4a0981b6..40cf3f91 100644 --- a/liblttng-ust/ltt-events.c +++ b/liblttng-ust/ltt-events.c @@ -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; } -- 2.34.1