Skip to content

Commit

Permalink
fix deprecated messages regarding high (#15832)
Browse files Browse the repository at this point in the history
(cherry picked from commit 75dc694)
  • Loading branch information
ringabout authored and narimiran committed Nov 5, 2020
1 parent 740112c commit 6d9961c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/system/gc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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() =
Expand Down
2 changes: 1 addition & 1 deletion lib/system/gc_ms.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6d9961c

Please sign in to comment.