Use the t# format where appropriate. Greg Stein.

This commit is contained in:
Guido van Rossum 1998-10-08 02:25:24 +00:00
parent b317f8aa0d
commit 7e48898d86
9 changed files with 34 additions and 37 deletions

View file

@ -969,12 +969,9 @@ MPZ_mpz(self, args)
mpz_clear(&mplongdigit);
}
else if (PyString_Check(objp)) {
char *cp;
int len;
char *cp = PyString_AS_STRING(objp);
int len = PyString_GET_SIZE(objp);
MP_INT mplongdigit;
if (!PyArg_Parse(objp, "s#", &cp, &len))
return NULL;
if ((mpzp = newmpzobject()) == NULL)
return NULL;