ref: 83e4263979931e434d56e0e50bdc663db98239bb
parent: f389dc63969bbe41ddb79a7316ef2cdaf4a38bc2
author: cinap_lenrek <[email protected]>
date: Thu Dec 6 15:49:41 EST 2018
libmp: fix mptouv behaviour to match mptoui (sync with 9front)
--- a/libmp/mptouv.c
+++ b/libmp/mptouv.c
@@ -33,11 +33,11 @@
uvlong v;
int s;
- if(b->top == 0)
+ if(b->top == 0 || b->sign < 0)
return 0LL;
if(b->top > VLDIGITS)
- return MAXVLONG;
+ return -1LL;
v = 0ULL;
for(s = 0; s < b->top; s++)