Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 606:c763fc64fcab legacy-trunk
long_format() is now declared in longobject.h.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 19 Jan 1992 16:25:49 +0000 |
| parents | 9f06c6689f0d |
| children | 59f9325bb8ec |
line wrap: on
line diff
--- a/Python/bltinmodule.c Fri Jan 17 14:03:20 1992 +0000 +++ b/Python/bltinmodule.c Sun Jan 19 16:25:49 1992 +0000 @@ -37,9 +37,6 @@ #include "ceval.h" #include "modsupport.h" -/* Should be in longobject.h */ -extern stringobject *long_format PROTO((object *, int)); - static object * builtin_abs(self, v) object *self; @@ -228,7 +225,7 @@ return newstringobject(buf); } if (is_longobject(v)) { - return (object *) long_format(v, 16); + return long_format(v, 16); } } err_setstr(TypeError, "hex() requires int/long argument"); @@ -399,7 +396,7 @@ return newstringobject(buf); } if (is_longobject(v)) { - return (object *) long_format(v, 8); + return long_format(v, 8); } } err_setstr(TypeError, "oct() requires int/long argument");
