From 9e1e00f00a8873c85f5583e4f68df86cfe3d6dc3 Mon Sep 17 00:00:00 2001 From: jbj Date: Fri, 23 May 2003 17:34:22 +0000 Subject: [PATCH] Use mpextgcd, not mpbinv_w. CVS patchset: 6874 CVS date: 2003/05/23 17:34:22 --- python/rpmmpw-py.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/rpmmpw-py.c b/python/rpmmpw-py.c index 291141a..3bf1912 100644 --- a/python/rpmmpw-py.c +++ b/python/rpmmpw-py.c @@ -1559,10 +1559,9 @@ fprintf(stderr, "sub ++: borrow\n"); mpgcd_w(xsize, xdata, mdata, MPW_DATA(z), wksp); break; case 'I': - wksp = alloca(6*(msize+1)*sizeof(*wksp)); - mpbset(&b, msize, mdata); + wksp = alloca((7*msize+6)*sizeof(*wksp)); z = mpw_New(msize); - mpbinv_w(&b, xsize, xdata, MPW_DATA(z), wksp); + (void) mpextgcd_w(msize, wksp, mdata, MPW_DATA(z), wksp+msize); break; #ifdef DYING case 'R': -- 2.7.4