summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-04-14 09:40:08 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-04-23 10:43:32 -0700
commitbb92991408c2adedc9298c7f7ded13e5388a420f (patch)
treeefb3c3967e7b9016768083337072fcd0a2d0bd55
parent95cff1133d24374360c82c10756e40914edd5483 (diff)
downloadserenity-bb92991408c2adedc9298c7f7ded13e5388a420f.zip
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.
-rw-r--r--Userland/Libraries/LibC/inttypes.h2
1 files changed, 1 insertions, 1 deletions
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