mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-16 09:37:12 +00:00
fix deprecated messages regarding high (#15832)
This commit is contained in:
@@ -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() =
|
||||
|
||||
@@ -507,7 +507,7 @@ when not defined(useNimRtl):
|
||||
gch.cycleThreshold = InitialThreshold
|
||||
|
||||
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
|
||||
|
||||
when defined(nimTracing):
|
||||
|
||||
Reference in New Issue
Block a user