diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-12-06 20:53:54 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-12-06 20:53:54 +0100 |
commit | 01afe9328b3ddf51c1ab2725684fc542bc81f76c (patch) | |
tree | 2bdf240c045a0089e91f0014b78bad92f8154c22 | |
parent | 1a5c8430d20d7ec5cd52c8335af6490ab1dabcf2 (diff) | |
download | plan9front-01afe9328b3ddf51c1ab2725684fc542bc81f76c.tar.xz |
libmp: fix assert() for mpexp() with nil modulus
-rw-r--r-- | sys/src/libmp/port/mpexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libmp/port/mpexp.c b/sys/src/libmp/port/mpexp.c index 1ebabba93..534fb33a9 100644 --- a/sys/src/libmp/port/mpexp.c +++ b/sys/src/libmp/port/mpexp.c @@ -22,7 +22,7 @@ mpexp(mpint *b, mpint *e, mpint *m, mpint *res) mpdigit d, bit; int i, j; - assert(m->flags & MPnorm); + assert(m == nil || m->flags & MPnorm); assert((e->flags & MPtimesafe) == 0); res->flags |= b->flags & MPtimesafe; |