Skip to content

Commit 247d175

Browse files
QuLogicedschofield
authored andcommitted
Fix ensure_new_type's handling of longs.
This handles ints as input, but not longs, which causes test failures on 32-bit systems (and possibly 64-bit if you pick a large enough number).
1 parent 6ced8ce commit 247d175

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

future/utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ def ensure_new_type(obj):
607607
return newstr(obj)
608608
elif native_type == int:
609609
return newint(obj)
610+
elif native_type == long:
611+
return newint(obj)
610612
elif native_type == dict:
611613
return newdict(obj)
612614
else:

0 commit comments

Comments
 (0)