fixes #14209 [backport:1.2] (#14213)

* fixes #14209 [backport:1.2]
* improve stability

(cherry picked from commit 64e839d5fd)
This commit is contained in:
Andreas Rumpf
2020-05-05 00:48:13 +02:00
committed by narimiran
parent 2977a31654
commit 75abd4dc68
3 changed files with 32 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ proc raiseDivByZero {.compilerproc, noinline.} =
{.pragma: nimbaseH, importc, nodecl, noSideEffect, compilerproc.}
when (defined(gcc) or defined(clang)) and not defined(nimEmulateOverflowChecks):
when not defined(nimEmulateOverflowChecks):
# take the #define from nimbase.h
proc nimAddInt(a, b: int, res: ptr int): bool {.nimbaseH.}