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.4.3~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9b82f90498716fd268099e9ab084cf2afdc69876;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 93f8f50a9..166bb9ebb 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -2143,7 +2143,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 */