shithub: mc

Download patch

ref: f2e5f2968fed0b698aa129a9b359c8593ae7cbfd
parent: 7f72d10792936c26a6c92ea4bd8489381c8ce789
author: Ori Bernstein <[email protected]>
date: Thu Jan 2 05:29:02 EST 2014

Fix a one char typo.

--- a/libstd/cmp.myr
+++ b/libstd/cmp.myr
@@ -30,10 +30,10 @@
 
 	l = min(a.len, b.len)
 	for i = 0; i < l; i++
-		v = b[i] - a[i]
+		v = a[i] - b[i]
 		if v < 0
 			-> `Before
-		elif v < 0
+		elif v > 0
 			-> `After
 		;;
 	;;