diff --git a/sys/src/lib/mp/port/mptole.c b/sys/src/lib/mp/port/mptole.c index 9934fb0..cc4b274 100644 --- a/sys/src/lib/mp/port/mptole.c +++ b/sys/src/lib/mp/port/mptole.c @@ -10,6 +10,7 @@ mptole(mpint *b, uint8_t *p, uint32_t n, uint8_t **pp) { int m; + assert((p == nil) != (pp == nil)) m = (mpsignif(b)+7)/8; if(m == 0) m++;