summaryrefslogtreecommitdiff
path: root/lib/std/fltparse.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-04 00:01:57 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-04 00:01:57 -0700
commit99cc92c31eadabe470d781af2f5fd4410594e10e (patch)
treebecb7b37a86017052564637f6e52452fd7a12ef4 /lib/std/fltparse.myr
parent1b1439cd64f73986909b85c99c91c2195d4ab58f (diff)
downloadmc-99cc92c31eadabe470d781af2f5fd4410594e10e.tar.gz
Plug some leaks.
Diffstat (limited to 'lib/std/fltparse.myr')
-rw-r--r--lib/std/fltparse.myr7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/fltparse.myr b/lib/std/fltparse.myr
index fcc97af..9836d1f 100644
--- a/lib/std/fltparse.myr
+++ b/lib/std/fltparse.myr
@@ -183,8 +183,8 @@ const fallback = {mant, exp, lim
while true
(xprime, rprime) = std.bigdivmod(u, v)
- std.bigmove(x, xprime)
- std.bigmove(r, rprime)
+ std.bigsteal(x, xprime)
+ std.bigsteal(r, rprime)
if k == lim.minexp
if std.biggei(x, lim.minsig) && std.biglei(x, lim.maxsig)
break
@@ -193,7 +193,8 @@ const fallback = {mant, exp, lim
goto done
;;
elif k > lim.maxexp
- -> std.flt64inf()
+ f = std.flt64inf()
+ goto done
;;
if std.biglti(x, lim.minsig)
std.bigmuli(u, 2)