]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
long_format() is now declared in longobject.h.
authorGuido van Rossum <guido@python.org>
Sun, 19 Jan 1992 16:25:49 +0000 (16:25 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 19 Jan 1992 16:25:49 +0000 (16:25 +0000)
Python/bltinmodule.c

index bd153f2928879c8f4546db799272b0761806658b..d5870fe9dd785ba04b01840b4de58638e3c4eae1 100644 (file)
@@ -37,9 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #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 @@ builtin_hex(self, v)
                        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 @@ builtin_oct(self, v)
                        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");