From ce0cb973708ab05fc6597e8852f7331aaad15fd4 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 1 Oct 2014 14:32:12 -0400 Subject: [PATCH] Fix: incorrect cast in ust consumer assert Fixes Coverity issue 1068813. Signed-off-by: David Goulet --- src/common/ust-consumer/ust-consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 01f79d68f..bff360edb 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -2144,7 +2144,7 @@ int lttng_ustconsumer_data_pending(struct lttng_consumer_stream *stream) */ DBG("UST consumer metadata pending check: contiguous %" PRIu64 " vs pushed %" PRIu64, contiguous, pushed); - assert(((int64_t) contiguous - pushed) >= 0); + assert(((int64_t) (contiguous - pushed)) >= 0); if ((contiguous != pushed) || (((int64_t) contiguous - pushed) > 0 || contiguous == 0)) { ret = 1; /* Data is pending */ -- 2.34.1