commit | 7e48898d86aaddac7f26b7a859a7b8996dfdbea9 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Oct 08 02:25:24 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Oct 08 02:25:24 1998 +0000 |
tree | ab895a2a39069e9c005ee5e887d2292d0e7ab94e | |
parent | b317f8aa0d1387f30c72df47bf18cb7517f45f2a [diff] [blame] |
Use the t# format where appropriate. Greg Stein.
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index 0400605..4299f45 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c
@@ -969,12 +969,9 @@ 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;