From b0a977fe41ac7a2cf5caf7438427153095455be9 Mon Sep 17 00:00:00 2001 From: data-man Date: Sat, 1 Dec 2018 23:23:51 +0500 Subject: [PATCH 1/2] Don't use deprecated fmod in VM --- compiler/vmops.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/vmops.nim b/compiler/vmops.nim index f87ab45085..75873bfe85 100644 --- a/compiler/vmops.nim +++ b/compiler/vmops.nim @@ -11,7 +11,7 @@ #import vmdeps, vm from math import sqrt, ln, log10, log2, exp, round, arccos, arcsin, arctan, arctan2, cos, cosh, hypot, sinh, sin, tan, tanh, pow, trunc, - floor, ceil, `mod`, fmod + floor, ceil, `mod` from os import getEnv, existsEnv, dirExists, fileExists, putEnv, walkDir @@ -102,7 +102,6 @@ proc registerAdditionalOps*(c: PCtx) = wrap1f_math(trunc) wrap1f_math(floor) wrap1f_math(ceil) - wrap2f_math(fmod) proc `mod Wrapper`(a: VmArgs) {.nimcall.} = setResult(a, `mod`(getFloat(a, 0), getFloat(a, 1))) From d80e585438e192ccbc681692f904fd3bba9e265a Mon Sep 17 00:00:00 2001 From: data-man Date: Tue, 4 Dec 2018 17:42:50 +0500 Subject: [PATCH 2/2] Update changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 3ecc776146..536d582371 100644 --- a/changelog.md +++ b/changelog.md @@ -106,5 +106,6 @@ proc enumToString*(enums: openArray[enum]): string = documentation. ### Compiler changes +- The deprecated `fmod` proc is now unavailable on the VM'. ### Bugfixes