diff --git a/ComicRack/MainForm.cs b/ComicRack/MainForm.cs index e261e4e..e9ed42f 100644 --- a/ComicRack/MainForm.cs +++ b/ComicRack/MainForm.cs @@ -3704,7 +3704,7 @@ private void trimTimer_Tick(object sender, EventArgs e) { using (Process process = Process.GetCurrentProcess()) { - process.MaxWorkingSet = new IntPtr(val.Clamp(50, Settings.UnlimitedSystemMemory) * 1024 * 1024); + process.MaxWorkingSet = new IntPtr(Convert.ToInt64(val.Clamp(50, Settings.UnlimitedSystemMemory)) * 1024 * 1024); } } catch