From: Christos Zoulas Date: Sun, 22 Mar 2009 23:27:33 +0000 (+0000) Subject: fix sign comparison warning. X-Git-Tag: FILE5_05~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1faa48144be9d1cf985676eb153b41b03ece77f;p=file fix sign comparison warning. --- diff --git a/src/cdf.c b/src/cdf.c index 6a69e2e5..d254e4b5 100644 --- a/src/cdf.c +++ b/src/cdf.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf.c,v 1.20 2009/03/10 11:44:29 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.21 2009/03/22 23:27:33 christos Exp $") #endif #include @@ -232,7 +232,7 @@ cdf_read(const cdf_info_t *info, off_t off, void *buf, size_t len) { size_t siz = (size_t)off + len; - if (off + len != (off_t)siz) { + if ((off_t)(off + len) != (off_t)siz) { errno = EINVAL; return -1; }