Fix: missing data pending signess conversion
authorDavid Goulet <dgoulet@efficios.com>
Thu, 29 Aug 2013 13:48:43 +0000 (09:48 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 29 Aug 2013 13:48:43 +0000 (09:48 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/ust-consumer/ust-consumer.c

index 08161c27e1f3ff2fc4932c87701171a15a96c743..d154e4805d657ea9e2f369925b861b9e6a972ac5 100644 (file)
@@ -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;
                }
This page took 0.027125 seconds and 5 git commands to generate.