]> granicus.if.org Git - file/commitdiff
fix sign comparison warning.
authorChristos Zoulas <christos@zoulas.com>
Sun, 22 Mar 2009 23:27:33 +0000 (23:27 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 22 Mar 2009 23:27:33 +0000 (23:27 +0000)
src/cdf.c

index e107737e706f57de1505010674b42bbf31808899..0d170c587f2949493c9330f1961aba6b619c4f7d 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf.c,v 1.19 2009/02/23 20:51:55 christos Exp $")
+FILE_RCSID("@(#)$File: cdf.c,v 1.20 2009/03/10 11:44:29 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -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;
        }