Show More
@@ -2311,7 +2311,7 b' rustlazyancestorsObject *rustlazyancesto' | |||
|
2311 | 2311 | /* to pass index_get_parents() */ |
|
2312 | 2312 | int (*)(indexObject *, Py_ssize_t, int*, int), |
|
2313 | 2313 | /* intrevs vector */ |
|
2314 |
|
|
|
2314 | Py_ssize_t initrevslen, long *initrevs, | |
|
2315 | 2315 | long stoprev, |
|
2316 | 2316 | int inclusive); |
|
2317 | 2317 | void rustlazyancestors_drop(rustlazyancestorsObject *self); |
@@ -60,15 +60,16 b' impl Graph for Index {' | |||
|
60 | 60 | pub extern "C" fn rustlazyancestors_init( |
|
61 | 61 | index: IndexPtr, |
|
62 | 62 | parents: IndexParentsFn, |
|
63 |
initrevslen: |
|
|
63 | initrevslen: ssize_t, | |
|
64 | 64 | initrevs: *mut c_long, |
|
65 | 65 | stoprev: c_long, |
|
66 | 66 | inclusive: c_int, |
|
67 | 67 | ) -> *mut AncestorsIterator<Index> { |
|
68 | assert!(initrevslen >= 0); | |
|
68 | 69 | unsafe { |
|
69 | 70 | raw_init( |
|
70 | 71 | Index::new(index, parents), |
|
71 | initrevslen, | |
|
72 | initrevslen as usize, | |
|
72 | 73 | initrevs, |
|
73 | 74 | stoprev, |
|
74 | 75 | inclusive, |
General Comments 0
You need to be logged in to leave comments.
Login now