From 25cae192c6156512776de49b5d5569825a6931c5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 17 Dec 2023 04:59:15 -0600 Subject: [PATCH] Missed an int64_t in the peek() conversion. --- toys/posix/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/posix/file.c b/toys/posix/file.c index 70e15a03..8bc2b383 100644 --- a/toys/posix/file.c +++ b/toys/posix/file.c @@ -34,7 +34,7 @@ static void do_elf_file(int fd) { unsigned endian = toybuf[5], bits = toybuf[4]-1, i, j, dynamic = 0, stripped = 1, phentsize, phnum, shsize, shnum, bail = 0, arch; - int64_t (*elf_int)(void *ptr, unsigned size) = (endian==2)?peek_be:peek_le; + long long (*elf_int)(void *ptr, unsigned size) = (endian==2)?peek_be:peek_le; char *map = MAP_FAILED; unsigned long phoff, shoff; -- 2.39.2