diff options
author | cooldome <cdome@bk.ru> | 2020-04-07 18:40:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 19:40:14 +0200 |
commit | c835c8c4e78cbe3451c2ccdfffe9663f1b428728 (patch) | |
tree | d835de01cbfb1e2393a4a1fce8b5daf10835775b /lib | |
parent | ab5e26c53cf34a1839dd92d247b5e0a5cde432a0 (diff) | |
download | Nim-c835c8c4e78cbe3451c2ccdfffe9663f1b428728.tar.gz |
fix #13910 (#13917)
Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nimbase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index 597a5317f..04cf146a8 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -569,7 +569,7 @@ NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "" #define nimModInt(a, b, res) (((*res) = (a) % (b)), 0) #define nimModInt64(a, b, res) (((*res) = (a) % (b)), 0) -#if !defined(_MSC_VER) && !defined(NIM_EmulateOverflowChecks) +#if (!defined(_MSC_VER) || defined(__clang__)) && !defined(NIM_EmulateOverflowChecks) /* these exist because we cannot have .compilerProcs that are importc'ed by a different name */ |