From: Sami Farin Date: Tue, 24 Apr 2007 19:56:02 +0000 (+0300) Subject: fast-import: size_t vs ssize_t X-Git-Tag: v1.5.2-rc1~32^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=00be8dcc1aca3c1c1a94b39f0563d30d1fa89290;p=git.git fast-import: size_t vs ssize_t size_t is unsigned, so (n < 0) is never true. Signed-off-by: Shawn O. Pearce --- 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)