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.
This commit is contained in:
ragnarok-clanker 2026-11-04 23:19:10 +00:00
commit fa710d95fa

View file

@ -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<long long>(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);
}