From bb92991408c2adedc9298c7f7ded13e5388a420f Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Thu, 14 Apr 2022 09:40:08 +0200 Subject: [PATCH] LibC: Use correct inttypes.h format strings on Aarch64 Similarly to x86_64, Aarch64 is LP64, so its `uint64_t` type is `unsigned long`. Fixes a bunch of compiler warnings when compiling the LLVM runtime libraries for the aarch64-pc-serenity target. --- Userland/Libraries/LibC/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/inttypes.h b/Userland/Libraries/LibC/inttypes.h index 8755cbd62e..43d9f86d01 100644 --- a/Userland/Libraries/LibC/inttypes.h +++ b/Userland/Libraries/LibC/inttypes.h @@ -11,7 +11,7 @@ __BEGIN_DECLS -#ifndef __x86_64__ +#ifdef __i386__ # define __PRI64_PREFIX "ll" # define __PRIPTR_PREFIX #else