diff --git a/sys/src/libmp/port/mplogic.c b/sys/src/libmp/port/mplogic.c index 22b61827b..3dd9be2ab 100644 --- a/sys/src/libmp/port/mplogic.c +++ b/sys/src/libmp/port/mplogic.c @@ -153,6 +153,7 @@ mptrunc(mpint *b, int n, mpint *r) }else if(b->sign == 1){ if(d >= b->top){ mpassign(b, r); + mpnorm(r); return; } if(b != r)