fix deprecated messages regarding high (#15832)

This commit is contained in:
flywind
2020-11-03 23:31:16 +08:00
committed by GitHub
parent d62f3627aa
commit 75dc69417a
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):