shithub: mc

Download patch

ref: 7a8432f91da0cd7b9e9fb0ccfb3c96d849d00b54
parent: 4b77bda908dec8620abde1e452a1f2bac29f1252
author: Ori Bernstein <[email protected]>
date: Wed Aug 7 13:55:53 EDT 2013

When printing negative numbers, actually flip the sign for formatting.

--- a/libstd/fmt.myr
+++ b/libstd/fmt.myr
@@ -167,6 +167,7 @@
 	n = 0
 	i = 0
 	if val < 0
+		val = -val
 		isneg = true
 	else
 		isneg = false