shithub: mc

Download patch

ref: 7872641a685fc1498036dd0d6c2a4657e97a8e2e
parent: 340cbfe1d94aa8065191eac10aec2dbe3922c100
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 18 14:02:09 EDT 2015

Fix and enable all fmt tests.

--- a/libstd/fmt.myr
+++ b/libstd/fmt.myr
@@ -398,7 +398,7 @@
 const strfmt = {sb, str, params
 	var opts
 	var w, p, i
-	
+
 	p = ' '
 	w = 0
 	opts = parseparams(params, [
--- a/libstd/htab.myr
+++ b/libstd/htab.myr
@@ -141,10 +141,9 @@
 				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