Rev 198: Avoid a cast from pointer to int. in http://bazaar.launchpad.net/%2Bbranch/meliae

John Arbash Meinel john at arbash-meinel.com
Wed Feb 20 05:57:16 UTC 2013


At http://bazaar.launchpad.net/%2Bbranch/meliae

------------------------------------------------------------
revno: 198
revision-id: john at arbash-meinel.com-20130220055708-mmps5b7j9i4v1cfh
parent: john at arbash-meinel.com-20121120104637-cg12pvmslmr9he6m
author: Martin Pool <mbp at sourcefrog.net>
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: meliae
timestamp: Wed 2013-02-20 05:57:08 +0000
message:
  Avoid a cast from pointer to int.
-------------- next part --------------
=== modified file 'meliae/_loader.pyx'
--- a/meliae/_loader.pyx	2011-11-01 15:24:43 +0000
+++ b/meliae/_loader.pyx	2013-02-20 05:57:08 +0000
@@ -1036,8 +1036,8 @@
         self.table_pos += 1
         if cur == NULL or cur == _dummy:
             raise RuntimeError('didn\'t run off the end, but got null/dummy'
-                ' %d, %d %d' % (<int>cur, self.table_pos,
-                                self.collection._table_mask))
+                ' 0x%x, %d %d' % (<Py_ssize_t>cur, self.table_pos,
+                                  self.collection._table_mask))
         return self.collection._proxy_for(<object>cur.address, cur)
 
 



More information about the bazaar-commits mailing list