summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-07-16 09:00:41 +0200
committerAraq <rumpf_a@web.de>2014-07-16 09:00:41 +0200
commit4dc2925b7a8dbbb20b497f3c151a041b02c5786e (patch)
treed921831b29e9954cf61870aedafbeca178b1123c /lib
parente94203ac217460c181b6d098f768d18f3151ef08 (diff)
downloadNim-4dc2925b7a8dbbb20b497f3c151a041b02c5786e.tar.gz
JS compilation works again
Diffstat (limited to 'lib')
-rw-r--r--lib/system/jssys.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim
index 1196a81ef..8766906e3 100644
--- a/lib/system/jssys.nim
+++ b/lib/system/jssys.nim
@@ -646,10 +646,10 @@ proc tenToThePowerOf(b: int): BiggestFloat =
   result = 1.0
   while true:
     if (b and 1) == 1:
-      result *= a
+      result = result * a
     b = b shr 1
     if b == 0: break
-    a *= a
+    a = a * a
 
 const
   IdentChars = {'a'..'z', 'A'..'Z', '0'..'9', '_'}