fix deprecated messages regarding high (#15832)

(cherry picked from commit 75dc69417a)
This commit is contained in:
flywind
2020-11-03 23:31:16 +08:00
committed by narimiran
parent 740112c1e0
commit 6d9961c898
2 changed files with 2 additions and 2 deletions

View File

@@ -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() =

View File

@@ -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):