diff --git a/src/editor/editbuffer.c b/src/editor/editbuffer.c index d7e599ab2..75c54702f 100644 --- a/src/editor/editbuffer.c +++ b/src/editor/editbuffer.c @@ -675,7 +675,7 @@ edit_buffer_read_file (edit_buffer_t * buf, int fd, off_t size) } /* reverse buffer */ - for (i = 0; i < buf->b2->len / 2; i++) + for (i = 0; i < (off_t) buf->b2->len / 2; i++) { void **b1, **b2;