summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2018-05-05 21:14:48 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2018-06-17 23:26:18 +0100
commit03b073d541e899585951fb51896ce4440f94387b (patch)
tree9f07c9ce993dd2c5088ca18e6e699ba887abb044 /lib/pure
parent9e8623785577aff8ecffaea27f8cdc0d98c1edb1 (diff)
downloadNim-03b073d541e899585951fb51896ce4440f94387b.tar.gz
Workaround VM bug in strutils
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/strutils.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 055e91faf..ab34a0b2d 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -17,8 +17,9 @@ import parseutils
 from math import pow, round, floor, log10
 from algorithm import reverse
 
-from unicode import toLower, toUpper
-export toLower, toUpper
+when defined(nimVmExportFixed):
+  from unicode import toLower, toUpper
+  export toLower, toUpper
 
 {.deadCodeElim: on.}  # dce option deprecated