summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-04 16:50:54 +0100
committerGitHub <noreply@github.com>2018-12-04 16:50:54 +0100
commit5abb6caed89ebc61123d3f6000174fb3898befe4 (patch)
tree31e37e5c45f4df67e9dc8cc34882e7262cb74338 /compiler
parentd502ddea9ec16a5ca12c070dd30030bbb9471e57 (diff)
parentd80e585438e192ccbc681692f904fd3bba9e265a (diff)
downloadNim-5abb6caed89ebc61123d3f6000174fb3898befe4.tar.gz
Don't use deprecated fmod in VM (#9837)
* Don't use deprecated fmod in VM

* Update changelog
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vmops.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/vmops.nim b/compiler/vmops.nim
index f87ab4508..75873bfe8 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)))