From 00be8dcc1aca3c1c1a94b39f0563d30d1fa89290 Mon Sep 17 00:00:00 2001 From: Sami Farin Date: Tue, 24 Apr 2007 22:56:02 +0300 Subject: [PATCH] fast-import: size_t vs ssize_t size_t is unsigned, so (n < 0) is never true. Signed-off-by: Shawn O. Pearce --- fast-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast-import.c b/fast-import.c index e3290df3d..c4c8cb905 100644 --- a/fast-import.c +++ b/fast-import.c @@ -673,7 +673,7 @@ static void fixup_header_footer(void) buf = xmalloc(buf_sz); for (;;) { - size_t n = xread(pack_fd, buf, buf_sz); + ssize_t n = xread(pack_fd, buf, buf_sz); if (!n) break; if (n < 0) -- 2.30.2