$OpenBSD: patch-py-rcsparse_c,v 1.1 2013/08/09 05:41:50 dcoppa Exp $
Py_ssize_t != int
On a sparc64 host, git-cvs died of a bus error due to a mismatch
in the string length argument passed to PyString_AsStringAndLength.
old
|
new
|
pyrcsrevtree_find_internal(struct pyrcsrevtree *self, |
53 | 53 | { |
54 | 54 | struct rcsrev rev; |
55 | 55 | struct rcstoken tok; |
56 | | int l; |
| 56 | Py_ssize_t l; |
57 | 57 | |
58 | 58 | if (!PyString_CheckExact(key)) |
59 | 59 | return -1; |
… |
… |
pyrcstokmap_find_internal(struct pyrcstokmap *self, Py |
322 | 322 | { |
323 | 323 | struct rcstokpair pair; |
324 | 324 | struct rcstoken tok; |
325 | | int l; |
| 325 | Py_ssize_t l; |
326 | 326 | |
327 | 327 | if (!PyString_CheckExact(key)) |
328 | 328 | return -1; |