From fa710d95fab72cbfbbe1062e45d7af513489142e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 23:19:10 +0000 Subject: [PATCH] Decompile 2 functions in Source/Utility/Text/GroupedInteger.cpp Batch #11058 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_18249 FormatGroupedInteger: byte-identical - fn_18250 FormatGroupedInteger: byte-identical Peer-reviewed-by: Yommy, dori, StrawberrysherbetIX Merged automatically: every function is byte-identical to the original. --- Source/Utility/Text/GroupedInteger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Utility/Text/GroupedInteger.cpp b/Source/Utility/Text/GroupedInteger.cpp index d782334e..596166e4 100644 --- a/Source/Utility/Text/GroupedInteger.cpp +++ b/Source/Utility/Text/GroupedInteger.cpp @@ -43,7 +43,7 @@ namespace { char* FormatGroupedInteger(std::int64_t value, char* output, int capacity) { if (output && capacity > 0) { char digits[32]; - const int length = std::snprintf(digits, sizeof(digits), "%lld", static_cast(value)); + const int length = _snprintf_s(digits, _TRUNCATE, "%I64d", value); GroupDigits(digits, length, output, capacity); } @@ -55,7 +55,7 @@ char* FormatGroupedInteger(std::int64_t value, char* output, int capacity) { char* FormatGroupedInteger(int value, char* output, int capacity) { if (output && capacity > 0) { char digits[32]; - const int length = std::snprintf(digits, sizeof(digits), "%d", value); + const int length = _snprintf_s(digits, _TRUNCATE, "%d", value); GroupDigits(digits, length, output, capacity); }