From 6acdf328bf6bcbdde61d4804b38059f392cadcbb Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 29 Aug 2013 09:48:43 -0400 Subject: [PATCH] Fix: missing data pending signess conversion Signed-off-by: David Goulet --- src/common/ust-consumer/ust-consumer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1