Rev 2505: Make sure we cast the long int back to a regular int in http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/knit_index_pyrex
John Arbash Meinel
john at arbash-meinel.com
Fri Jun 29 17:34:01 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/knit_index_pyrex
------------------------------------------------------------
revno: 2505
revision-id: john at arbash-meinel.com-20070629163350-pfpsrmoz6edxjdm5
parent: john at arbash-meinel.com-20070629163115-f8f8032mkj6ntu0s
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: knit_index_pyrex
timestamp: Fri 2007-06-29 11:33:50 -0500
message:
Make sure we cast the long int back to a regular int
modified:
bzrlib/_knit_load_data_c.pyx knit_c.pyx-20070509143944-u42gy8w387a10m0j-1
-------------- next part --------------
=== modified file 'bzrlib/_knit_load_data_c.pyx'
--- a/bzrlib/_knit_load_data_c.pyx 2007-06-29 16:31:15 +0000
+++ b/bzrlib/_knit_load_data_c.pyx 2007-06-29 16:33:50 +0000
@@ -78,7 +78,7 @@
# We can't just return the integer because of how pyrex determines when
# there is an exception.
- out[0] = strtol(s, &integer_end, 10)
+ out[0] = <int>strtol(s, &integer_end, 10)
if integer_end != end:
py_s = PyString_FromStringAndSize(s, end-s)
raise ValueError('%r is not a valid integer' % (py_s,))
More information about the bazaar-commits
mailing list