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