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:
parent
0a4a6892fd
commit
fa710d95fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue