zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1856dfea6b797d852b496c2111dbb326dbe2957e (tree)
parent af8eab546ef5bafc229598440200681f0fa5a1e8
Author: LemonBoy <LemonBoy@users.noreply.github.com>
Date:   Fri,  1 Jan 2021 19:33:53 +0100

stage1: Use correct format specifier for size_t parameters

Use `Iu` on Windows, the integer width depends on the target being
a 32bit or a 64bit one.
Diffstat:
Msrc/stage1/os.hpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stage1/os.hpp b/src/stage1/os.hpp @@ -46,7 +46,7 @@ #endif #if defined(ZIG_OS_WINDOWS) -#define ZIG_PRI_usize "I64u" +#define ZIG_PRI_usize "Iu" #define ZIG_PRI_i64 "I64d" #define ZIG_PRI_u64 "I64u" #define ZIG_PRI_llu "I64u"