X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fust-consumer%2Fust-consumer.c;h=d154e4805d657ea9e2f369925b861b9e6a972ac5;hp=08161c27e1f3ff2fc4932c87701171a15a96c743;hb=6acdf328bf6bcbdde61d4804b38059f392cadcbb;hpb=e5d1a9b33aa0920bbd9f6948bd0676156da67c61 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; }