From 2260236fa6c1b5cf79a1bb38af2aed4ad3e21a28 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 9 Jan 2025 20:55:30 -0600 Subject: [PATCH] Fix CPU profiler crash on conversion to ulong. --- Source/Editor/Windows/Profiler/CPU.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/Profiler/CPU.cs b/Source/Editor/Windows/Profiler/CPU.cs index 8c6ff5e78..ca3c9963f 100644 --- a/Source/Editor/Windows/Profiler/CPU.cs +++ b/Source/Editor/Windows/Profiler/CPU.cs @@ -175,7 +175,7 @@ namespace FlaxEditor.Windows.Profiler private string FormatCellBytes(object x) { - return Utilities.Utils.FormatBytesCount((ulong)x); + return Utilities.Utils.FormatBytesCount(Convert.ToUInt64(x)); } ///