summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-18 18:02:09 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-18 18:09:21 -0700
commit7872641a685fc1498036dd0d6c2a4657e97a8e2e (patch)
treedd69fa726dfdfa44694f1322fedf52fe5aeaf026 /libstd
parent340cbfe1d94aa8065191eac10aec2dbe3922c100 (diff)
downloadmc-7872641a685fc1498036dd0d6c2a4657e97a8e2e.tar.gz
Fix and enable all fmt tests.
Diffstat (limited to 'libstd')
-rw-r--r--libstd/fmt.myr2
-rw-r--r--libstd/htab.myr5
2 files changed, 3 insertions, 4 deletions
diff --git a/libstd/fmt.myr b/libstd/fmt.myr
index 518402f..ae7c9ee 100644
--- a/libstd/fmt.myr
+++ b/libstd/fmt.myr
@@ -398,7 +398,7 @@ const intparams = {params
const strfmt = {sb, str, params
var opts
var w, p, i
-
+
p = ' '
w = 0
opts = parseparams(params, [
diff --git a/libstd/htab.myr b/libstd/htab.myr
index bd726ed..887d4f6 100644
--- a/libstd/htab.myr
+++ b/libstd/htab.myr
@@ -141,10 +141,9 @@ generic htput = {ht, k, v
neltincr = 0
break
;;
- else
- di++
- i = (h + di) & (ht.keys.len - 1)
;;
+ di++
+ i = (h + di) & (ht.keys.len - 1)
;;
ht.nelt += neltincr
ht.hashes[i] = h