Change -EOF for EOF (it is worth -1), fix assertion
[babeltrace.git] / formats / ctf / ctf.c
index 24b754df034192cdb4f617dbeb23b50901eda22f..625b1c097a9de02eab852e1d4d9e9c6273177fa3 100644 (file)
@@ -189,7 +189,7 @@ void ctf_move_pos_slow(struct ctf_stream_pos *pos, size_t offset, int whence)
                        assert(0);
                }
                if (pos->cur_index >= pos->packet_index->len) {
-                       pos->offset = -EOF;
+                       pos->offset = EOF;
                        return;
                }
                index = &g_array_index(pos->packet_index, struct packet_index,
This page took 0.022924 seconds and 4 git commands to generate.