From d649baab5f55bf3cb36851f6e3cef5470eacd671 Mon Sep 17 00:00:00 2001
From: Christos Zoulas <christos@zoulas.com>
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 e107737e..0d170c58 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.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;
 	}
-- 
2.40.0