summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2007-05-07 18:30:48 +0000
committerKristján Valur Jónsson <kristjan@ccpgames.com>2007-05-07 18:30:48 +0000
commitf4601d874fc41cc7aa904ff09b9da273cefd7b72 (patch)
tree6e1177203fc3b8c4d204afcb2a52ccaca6430e66 /Objects/longobject.c
parentb4c285a25b78296afbc1a26f7ac14a41d011a48c (diff)
downloadcpython-git-f4601d874fc41cc7aa904ff09b9da273cefd7b72.tar.gz
Fix two problems that emerged when the testsuite was run with an x64 build: PyLong_FromSSize_t incorrectly assumed an unsigned object, and itertools.count() had the wrong upper limit for the iterator.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 7bf04d2941..e51517f3c8 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -893,7 +893,7 @@ _PyLong_FromSsize_t(Py_ssize_t ival)
int one = 1;
return _PyLong_FromByteArray(
(unsigned char *)&bytes,
- SIZEOF_SIZE_T, IS_LITTLE_ENDIAN, 0);
+ SIZEOF_SIZE_T, IS_LITTLE_ENDIAN, 1);
}
/* Create a new long int object from a C size_t. */