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