diff options
Diffstat (limited to 'lib/system/gc.nim')
-rw-r--r-- | lib/system/gc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 304eda19a..1f7164266 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -856,7 +856,7 @@ when not defined(useNimRtl): gch.cycleThreshold = InitialCycleThreshold proc GC_disableMarkAndSweep() = - gch.cycleThreshold = high(gch.cycleThreshold)-1 + gch.cycleThreshold = high(typeof(gch.cycleThreshold))-1 # set to the max value to suppress the cycle detector proc GC_fullCollect() = |