From: David Goulet Date: Thu, 29 Aug 2013 13:48:43 +0000 (-0400) Subject: Fix: missing data pending signess conversion X-Git-Tag: v2.3.0-rc3~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6acdf328bf6bcbdde61d4804b38059f392cadcbb;p=lttng-tools.git Fix: missing data pending signess conversion Signed-off-by: David Goulet --- diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 08161c27e..d154e4805 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -1764,9 +1764,9 @@ int lttng_ustconsumer_data_pending(struct lttng_consumer_stream *stream) */ DBG("UST consumer metadata pending check: contiguous %" PRIu64 " vs pushed %" PRIu64, contiguous, pushed); - assert(contiguous - pushed >= 0); + assert(((int64_t) contiguous - pushed) >= 0); if ((contiguous != pushed) || - (contiguous - pushed > 0 || contiguous == 0)) { + (((int64_t) contiguous - pushed) > 0 || contiguous == 0)) { ret = 1; /* Data is pending */ goto end; }