fix deprecated messages regarding high (#15832)

This commit is contained in:
flywind 2020-11-03 23:31:16 +08:00 • committed by GitHub
commit 75dc69417a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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):