math/limlee.c: Handle an abort from `pgen' correctly.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 14 Nov 2019 19:53:27 +0000 (19:53 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 16 Dec 2019 16:25:29 +0000 (16:25 +0000)
The `llgen' function just tries again if `pgen' reports an abort.  This
is entirely contrary to the intend of the `PGEN_ABORT' protocol, so I've
no idea why I thought this was a good idea.

Instead, leave the prime slot null (because adding a return code to the
`pgen' callback breaks the API), and arrange for the caller to notice
and clean up.  This is annoyingly because there may be an `mpmul' in
progress.


No differences found