chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 1.0.5.
[catacomb-python]
/
mp.c
diff --git
a/mp.c
b/mp.c
index bc7f7a61e0b845bb2b59dddac97a6ec2896c36ec..705a65eef18a3a6c60d445019851f95de8c96fb0 100644
(file)
--- a/
mp.c
+++ b/
mp.c
@@
-1,6
+1,4
@@
/* -*-c-*-
/* -*-c-*-
- *
- * $Id$
*
* Multiprecision arithmetic
*
*
* Multiprecision arithmetic
*
@@
-557,8
+555,6
@@
static PyObject *mpmeth_jacobi(PyObject *me, PyObject *arg)
PyObject *z = 0;
if (!PyArg_ParseTuple(arg, "O&:jacobi", convmp, &y)) goto end;
PyObject *z = 0;
if (!PyArg_ParseTuple(arg, "O&:jacobi", convmp, &y)) goto end;
- if (MP_NEGP(MP_X(me)) || MP_EVENP(MP_X(me)))
- VALERR("must be positive and odd");
z = PyInt_FromLong(mp_jacobi(y, MP_X(me)));
end:
if (y) MP_DROP(y);
z = PyInt_FromLong(mp_jacobi(y, MP_X(me)));
end:
if (y) MP_DROP(y);