diff --git a/newbrt/brt-serialize.c b/newbrt/brt-serialize.c index 4b402c0161f..32a44a63801 100644 --- a/newbrt/brt-serialize.c +++ b/newbrt/brt-serialize.c @@ -640,7 +640,7 @@ int deserialize_brtheader_7_or_later(u_int32_t size, int fd, DISKOFF off, struct rc.ndone = 0; { ssize_t r = pread(fd, rc.buf, size-12, off+12); - if (r!=size-12) { ret = EINVAL; goto died1; } + if (r!=(ssize_t)size-12) { ret = EINVAL; goto died1; } } h->dirty=0; h->layout_version = rbuf_int(&rc);