From: David Goulet Date: Wed, 1 Oct 2014 18:32:12 +0000 (-0400) Subject: Fix: incorrect cast in ust consumer assert X-Git-Tag: v2.5.1~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ce0cb973708ab05fc6597e8852f7331aaad15fd4;p=lttng-tools.git Fix: incorrect cast in ust consumer assert Fixes Coverity issue 1068813. Signed-off-by: David Goulet --- 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 */