From: Mathieu Desnoyers Date: Tue, 21 Feb 2012 16:49:53 +0000 (-0500) Subject: Fix type range comparison always false for 64-bit arch X-Git-Tag: v2.0.0-rc2~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=38eb0baa8a8b7bca7b1981e25ef09436d7eb5524;p=lttng-ust.git 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 --- 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; }