From 78c8fe36fe43fa465bc03108dda87ee3a1143585 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 25 Feb 2018 01:26:40 -0800 Subject: [PATCH] Fix read64le --- exosphere/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/utils.h b/exosphere/utils.h index dae7ce8f3..d7b471c4d 100644 --- a/exosphere/utils.h +++ b/exosphere/utils.h @@ -22,7 +22,7 @@ static inline uint32_t read32be(const unsigned char *dword, size_t offset) { } static inline uint64_t read64le(const void *qword, size_t offset) { - return *(uint32_t *)((uintptr_t)dword + offset); + return *(uint64_t *)((uintptr_t)dword + offset); } static __attribute__((noinline)) bool check_32bit_additive_overflow(uint32_t a, uint32_t b) {