[XAM] Fixed assertion related to incorrect casting

This should fix crash in 12xxx dashboard while browsing achievements

- Fixed issue with invalid time being presented for some achievements
- Added stub for: XampWebInstrumentationSetProfileCounts
This commit is contained in:
Gliniak
2025-05-07 20:05:29 +02:00
parent dd112ed462
commit f6d9e76fca
3 changed files with 15 additions and 3 deletions

View File

@@ -412,7 +412,7 @@ int32_t format_core(PPCContext* ppc_context, FormatData& data, ArgList& args,
start[0] = '\0';
while (precision-- > 0 || value != 0) {
auto digit = (int32_t)(value % radix);
const auto digit = static_cast<uint64_t>(value) % radix;
value /= radix;
assert_true(digit < strlen(digits));
*--start = digits[digit];