From: Gustavo N. <nie...@us...> - 2002-03-05 21:04:13
|
Update of /cvsroot/gmpy/gmpy/src In directory usw-pr-cvs1:/tmp/cvs-serv25379/src Modified Files: gmpy.c Log Message: Fixed a little compatibility bug, so gmpy work with old gmp libraries (old gmp uses seed, not _mp_seed). Index: gmpy.c =================================================================== RCS file: /cvsroot/gmpy/gmpy/src/gmpy.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gmpy.c 5 Mar 2002 11:05:11 -0000 1.3 --- gmpy.c 5 Mar 2002 21:04:08 -0000 1.4 *************** *** 5135,5139 **** --- 5135,5143 ---- PympzObject *resob = Pympz_new(); if(resob) { + #if __GNU_MP_ >= 4 mpz_set(resob->z, randstate->_mp_seed); + #else + mpz_set(resob->z, randstate->seed); + #endif result = (PyObject*)resob; } |