Skip to content

Commit ac2b248

Browse files
committed
archive-tar: mark RECORDSIZE/BLOCKSIZE as unsigned
They really are unsigned, and we are using e.g. BLOCKSIZE as `size_t` parameter to pass to `write_or_die()`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7d50f52 commit ac2b248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archive-tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "streaming.h"
1010
#include "run-command.h"
1111

12-
#define RECORDSIZE (512)
12+
#define RECORDSIZE (512u)
1313
#define BLOCKSIZE (RECORDSIZE * 20)
1414

1515
static char block[BLOCKSIZE];

0 commit comments

Comments
 (0)