From 75dc69417a235c3be1edb3d89ddb49104bdd438d Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Tue, 3 Nov 2020 23:31:16 +0800 Subject: [PATCH] fix deprecated messages regarding high (#15832) --- lib/system/gc.nim | 2 +- lib/system/gc_ms.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 304eda19a2..1f71642662 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 6683b9e349..852f5d7aa4 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):