fast-import: size_t vs ssize_t
size_t is unsigned, so (n < 0) is never true. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
46f6178a3f
commit
00be8dcc1a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user