From d1faa48144be9d1cf985676eb153b41b03ece77f Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 22 Mar 2009 23:27:33 +0000 Subject: [PATCH] fix sign comparison warning. --- src/cdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.50.1