Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
a4c1716332 Fix NumberOfDigits(int.MinValue) OverflowException in MathHelper
Agent-Logs-Url: https://github.com/microsoft/PowerToys/sessions/abb64c08-a007-4526-894e-6478e37a3555

Co-authored-by: MuyuanMS <116717757+MuyuanMS@users.noreply.github.com>
2026-04-29 08:50:48 +00:00
copilot-swe-agent[bot]
aa1e8b4d98 Initial plan 2026-04-29 08:48:57 +00:00

View File

@@ -16,7 +16,7 @@ namespace Peek.Common.Helpers
public static int NumberOfDigits(int num)
{
return Math.Abs(num).ToString(CultureInfo.InvariantCulture).Length;
return Math.Abs((long)num).ToString(CultureInfo.InvariantCulture).Length;
}
}
}