projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: missing data pending signess conversion
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 08161c27e1f3ff2fc4932c87701171a15a96c743..d154e4805d657ea9e2f369925b861b9e6a972ac5 100644
(file)
--- 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);
*/
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) ||
if ((contiguous != pushed) ||
- (
contiguous - pushed
> 0 || contiguous == 0)) {
+ (
((int64_t) contiguous - pushed)
> 0 || contiguous == 0)) {
ret = 1; /* Data is pending */
goto end;
}
ret = 1; /* Data is pending */
goto end;
}
This page took
0.024494 seconds
and
4
git commands to generate.