[*] Another gross bug

This commit is contained in:
Reece Wilson 2022-03-31 02:49:58 +01:00
parent 8002d6cba2
commit 1159bf3ca3

View File

@ -149,7 +149,7 @@ namespace Aurora::Locale
{
try
{
if (ns < AuUInt64(1000000000))
if (ns < AuMSToNS<AuUInt64>(1000))
{
const auto ms = ns / 1000000;
const auto remNs = ns % 1000000;
@ -157,7 +157,7 @@ namespace Aurora::Locale
}
else
{
return ConvertMSToTimescale(ns / AuUInt64(1000000000));
return ConvertMSToTimescale(AuNSToMS<AuUInt64>(1000));
}
}
catch (...)