shithub: riscv

Download patch

ref: 261ec9fe0e0b2dbde909da79a93e90220a9ea62c
parent: 75990fc71960d16227e94817d122631f53408c74
author: aiju <devnull@localhost>
date: Sat Aug 27 21:07:34 EDT 2016

strtomp: fix mpbits() call in octal code

--- a/sys/src/libmp/port/strtomp.c
+++ b/sys/src/libmp/port/strtomp.c
@@ -82,7 +82,7 @@
 		if(tab.t10[*(uchar*)p] >= 8)
 			break;
 
-	mpbits(b, (a-p)*3);
+	mpbits(b, (p-a)*3);
 	b->top = 0;
 	next = p;