Fix integer/float/string read: keep value in definition structure
[babeltrace.git] / include / babeltrace / ctf / types.h
index 91c3303c2835b92529d773966b9a8cd0adbc52b7..8c98ff2c76a263155ffb0e77752bcf50fe2b2db6 100644 (file)
@@ -133,7 +133,7 @@ void init_pos(struct stream_pos *pos, int fd)
 static inline
 void move_pos(struct stream_pos *pos, size_t offset)
 {
-       if (pos->fd >= 0 && pos->offset + offset >= pos->content_size)
+       if (pos->fd >= 0 && (pos->offset + offset >= pos->content_size))
                move_pos_slow(pos, offset);
        else
                pos->offset += offset;
This page took 0.02278 seconds and 4 git commands to generate.