projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix type-limits warnings, uint can't be < 0
[babeltrace.git]
/
include
/
babeltrace
/
ctfser-internal.h
diff --git
a/include/babeltrace/ctfser-internal.h
b/include/babeltrace/ctfser-internal.h
index fdbd2290a9fe42532987514a06b2ded094acbbeb..3522bae02afa40ff67eb686cd8134534bac0e7e8 100644
(file)
--- a/
include/babeltrace/ctfser-internal.h
+++ b/
include/babeltrace/ctfser-internal.h
@@
-146,8
+146,7
@@
bool _bt_ctfser_has_space_left(struct bt_ctfser *ctfser, uint64_t size_bits)
goto end;
}
- if (unlikely(ctfser->offset_in_cur_packet_bits < 0 || size_bits >
- UINT64_MAX - ctfser->offset_in_cur_packet_bits)) {
+ if (unlikely(size_bits > UINT64_MAX - ctfser->offset_in_cur_packet_bits)) {
has_space_left = false;
goto end;
}
This page took
0.024139 seconds
and
4
git commands to generate.