From 58e2cfe505ba9942524f06bb1b1419e6c579efad Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 08:44:16 +0000 Subject: fix: preserve 64-bit integers in NUM_TO_STR Co-Authored-By: Claude Fable 5.1 --- lib/CodeGen/StringConversionHandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/StringConversionHandler.cc') 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}); -- cgit v1.3.1-4-g156e