diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 08:44:16 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 08:44:16 +0000 |
| commit | 58e2cfe505ba9942524f06bb1b1419e6c579efad (patch) | |
| tree | 9a9ec110ce429a4fe2014987423c30be505274ae /lib/CodeGen/StringConversionHandler.cc | |
| parent | c6dbd14ec8ff94df47d3c2137cc5234203ec5e0c (diff) | |
fix: preserve 64-bit integers in NUM_TO_STR
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/StringConversionHandler.cc')
| -rw-r--r-- | lib/CodeGen/StringConversionHandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StringConversionHandler.cc b/lib/CodeGen/StringConversionHandler.cc index 62b99d7..af7f385 100644 --- a/lib/CodeGen/StringConversionHandler.cc +++ b/lib/CodeGen/StringConversionHandler.cc @@ -30,7 +30,7 @@ Value *StringConversionHandler::emitNumToStr(Value *Num, bool IsReal) { if (IsReal) { FormatStr = Builder.CreateGlobalStringPtr("%f"); } else { - FormatStr = Builder.CreateGlobalStringPtr("%d"); + FormatStr = Builder.CreateGlobalStringPtr("%lld"); } Builder.CreateCall(SprintfFunc, {Buffer, FormatStr, Num}); |
