code: drawterm

Download patch

ref: 9ca0eeaaed1dd8a9ced7e13a560d12fd9e7ac494
parent: f8adb5f768c5b0573a7d8efea311705dc440a8f2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 21 21:01:25 EST 2016

mpxor: sign should be 1/-1, not 0/-1 (from 9front)

--- a/libmp/mplogic.c
+++ b/libmp/mplogic.c
@@ -104,7 +104,7 @@
 		b2 = t;
 	}
 	fl = (b1->sign & 10) ^ (b2->sign & 12);
-	sum->sign = (int)(fl << 28) >> 31;
+	sum->sign = (int)(fl << 28) >> 31 | 1;
 	mpbits(sum, b1->top*Dbits);
 	dp1 = b1->p;
 	dp2 = b2->p;