Skip to content

Commit

Permalink
stage1: Use correct format specifier for size_t parameters
Browse files Browse the repository at this point in the history
Use `Iu` on Windows, the integer width depends on the target being
a 32bit or a 64bit one.
  • Loading branch information
LemonBoy authored and andrewrk committed Jan 3, 2021
1 parent af8eab5 commit 1856dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stage1/os.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1856dfe

Please sign in to comment.