Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d80647

Browse files
committed
long_format() is now declared in longobject.h.
1 parent 670e5a0 commit 6d80647

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Python/bltinmodule.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3737
#include "ceval.h"
3838
#include "modsupport.h"
3939

40-
/* Should be in longobject.h */
41-
extern stringobject *long_format PROTO((object *, int));
42-
4340
static object *
4441
builtin_abs(self, v)
4542
object *self;
@@ -228,7 +225,7 @@ builtin_hex(self, v)
228225
return newstringobject(buf);
229226
}
230227
if (is_longobject(v)) {
231-
return (object *) long_format(v, 16);
228+
return long_format(v, 16);
232229
}
233230
}
234231
err_setstr(TypeError, "hex() requires int/long argument");
@@ -399,7 +396,7 @@ builtin_oct(self, v)
399396
return newstringobject(buf);
400397
}
401398
if (is_longobject(v)) {
402-
return (object *) long_format(v, 8);
399+
return long_format(v, 8);
403400
}
404401
}
405402
err_setstr(TypeError, "oct() requires int/long argument");

0 commit comments

Comments
 (0)