From b213f91a0031da91eb6d3b86c7e724a0f7725d3e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 13 Nov 2019 21:26:26 -0600 Subject: Pedantic constant annotations to shut up older toolchains. --- toys/posix/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/tar.c') diff --git a/toys/posix/tar.c b/toys/posix/tar.c index ff129819..1e662589 100644 --- a/toys/posix/tar.c +++ b/toys/posix/tar.c @@ -848,7 +848,7 @@ void tar_main(void) // detect gzip and bzip signatures if (SWAP_BE16(*(short *)hdr)==0x1f8b) toys.optflags |= FLAG_z; else if (!memcmp(hdr, "BZh", 3)) toys.optflags |= FLAG_j; - else if (peek_be(hdr, 7) == 0xfd377a585a0000) toys.optflags |= FLAG_J; + else if (peek_be(hdr, 7) == 0xfd377a585a0000UL) toys.optflags |= FLAG_J; else error_exit("Not tar"); // if we can seek back we don't need to loop and copy data -- cgit v1.2.3