Port: use SIZE_MAX as max size_t value
[babeltrace.git] / plugins / ctf / common / notif-iter / notif-iter.c
index 674d022f0ccc3601a11b8802730ecbe33271bf13..30f9727a10594093266e1dbd90efb9216599bc3a 100644 (file)
@@ -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;
This page took 0.02357 seconds and 4 git commands to generate.