diff Modules/_struct.c @ 50866:8325eb041921 3.0

Merged revisions 68675 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r68675 | mark.dickinson | 2009-01-17 21:57:11 +0000 (Sat, 17 Jan 2009) | 2 lines Replace PyNumber_Int with PyNumber_Long. ........
author Mark Dickinson <dickinsm@gmail.com>
date Sun, 18 Jan 2009 11:01:50 +0000
parents 427e43d0e031
children 87fbbf22adf3
line wrap: on
line diff
--- a/Modules/_struct.c	Sun Jan 18 03:31:52 2009 +0000
+++ b/Modules/_struct.c	Sun Jan 18 11:01:50 2009 +0000
@@ -155,7 +155,7 @@
 			PyErr_Clear();
 			if (PyErr_WarnEx(PyExc_DeprecationWarning, FLOAT_COERCE, 2) < 0)
 				return -1;
-			o = PyNumber_Int(v);
+			o = PyNumber_Long(v);
 			if (o == NULL)
 				return -1;
 			res = get_long(o, p);
@@ -260,7 +260,7 @@
 				PyErr_Clear();
 				if (PyErr_WarnEx(PyExc_DeprecationWarning, FLOAT_COERCE, 2) < 0)
 					return -1;
-				o = PyNumber_Int(v);
+				o = PyNumber_Long(v);
 				if (o == NULL)
 					return -1;
 				res = get_wrapped_long(o, p);
@@ -299,7 +299,7 @@
 			PyErr_Clear();
 			if (PyErr_WarnEx(PyExc_DeprecationWarning, FLOAT_COERCE, 2) < 0)
 				return -1;
-			o = PyNumber_Int(v);
+			o = PyNumber_Long(v);
 			if (o == NULL)
 				return -1;
 			res = get_wrapped_ulong(o, p);