diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-08-28 16:34:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 16:34:27 -0700 |
commit | 014edde36a2f61b0a232ceb4800681a2ce261759 (patch) | |
tree | 60475d834b4988bb53a2662fc6e6c82057f7a79b | |
parent | 719718df2f98f2bd9aa4286ff8aeac3f02e4d46c (diff) | |
download | Nim-014edde36a2f61b0a232ceb4800681a2ce261759.tar.gz |
followup #18759: make compiler build cleanly with 0 warnings/hints (#18764)
-rw-r--r-- | compiler/semtypes.nim | 2 | ||||
-rw-r--r-- | compiler/vmops.nim | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index cb7f847a9..9f7a17a53 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -10,8 +10,6 @@ # this module does the semantic checking of type declarations # included from sem.nim -import math - const errStringOrIdentNodeExpected = "string or ident node expected" errStringLiteralExpected = "string literal expected" diff --git a/compiler/vmops.nim b/compiler/vmops.nim index 08225b065..e287dd41d 100644 --- a/compiler/vmops.nim +++ b/compiler/vmops.nim @@ -15,10 +15,12 @@ from std/math import sqrt, ln, log10, log2, exp, round, arccos, arcsin, lgamma when declared(math.copySign): - from std/math import copySign + # pending bug #18762, avoid renaming math + from std/math as math2 import copySign when declared(math.signbit): - from std/math import signbit + # ditto + from std/math as math3 import signbit from std/os import getEnv, existsEnv, delEnv, putEnv, dirExists, fileExists, walkDir, getAppFilename, raiseOSError, osLastError |