summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-11-03 23:31:16 +0800
committerGitHub <noreply@github.com>2020-11-03 16:31:16 +0100
commit75dc69417a235c3be1edb3d89ddb49104bdd438d (patch)
tree6b46a541c8b7f4c78ceb1f4d9e49898d7bed6d90 /lib/system
parentd62f3627aa1946cd5fa9d3e52abedf9576db0e8e (diff)
downloadNim-75dc69417a235c3be1edb3d89ddb49104bdd438d.tar.gz
fix deprecated messages regarding high (#15832)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/gc.nim2
-rw-r--r--lib/system/gc_ms.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 304eda19a..1f7164266 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -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() =
diff --git a/lib/system/gc_ms.nim b/lib/system/gc_ms.nim
index 6683b9e34..852f5d7aa 100644
--- a/lib/system/gc_ms.nim
+++ b/lib/system/gc_ms.nim
@@ -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):