From: Michael Jeanson Date: Fri, 21 Jul 2017 15:44:07 +0000 (-0400) Subject: Port: use SIZE_MAX as max size_t value X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=2b186c3e0b5b7970aa1d0bad341facc4a8580c19 Port: use SIZE_MAX as max size_t value Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/common/notif-iter/notif-iter.c b/plugins/ctf/common/notif-iter/notif-iter.c index 674d022f..30f9727a 100644 --- a/plugins/ctf/common/notif-iter/notif-iter.c +++ b/plugins/ctf/common/notif-iter/notif-iter.c @@ -480,7 +480,7 @@ enum bt_ctf_notif_iter_status request_medium_bytes( /* Restart at the beginning of the new medium buffer */ notit->buf.at = 0; - notit->buf.last_eh_at = -1ULL; + notit->buf.last_eh_at = SIZE_MAX; /* New medium buffer size */ notit->buf.sz = buffer_sz; @@ -1798,7 +1798,7 @@ void bt_ctf_notif_iter_reset(struct bt_ctf_notif_iter *notit) notit->buf.addr = NULL; notit->buf.sz = 0; notit->buf.at = 0; - notit->buf.last_eh_at = -1ULL; + notit->buf.last_eh_at = SIZE_MAX; notit->buf.packet_offset = 0; notit->state = STATE_INIT; notit->cur_content_size = -1;