@@ -386,14 +386,13 @@ PyNumberMethods TreeEntry_as_number = {
386
386
0 , /* nb_inplace_xor */
387
387
0 , /* nb_inplace_or */
388
388
0 , /* nb_floor_divide */
389
- TreeEntry_getitem , /* nb_true_divide */
389
+ ( binaryfunc ) TreeEntry_getitem , /* nb_true_divide */
390
390
0 , /* nb_inplace_floor_divide */
391
391
0 , /* nb_inplace_true_divide */
392
392
0 , /* nb_index */
393
- #if PY_MAJOR_VERSION >= 3
394
- 0 , /* nb_matrix_multiply */
395
- 0 , /* nb_inplace_matrix_multiply */
396
- #endif
393
+ // Python 3.5+
394
+ // 0, /* nb_matrix_multiply */
395
+ // 0, /* nb_inplace_matrix_multiply */
397
396
};
398
397
399
398
@@ -491,7 +490,7 @@ wrap_tree_entry(const git_tree_entry *entry, Repository *repo)
491
490
}
492
491
493
492
int
494
- Tree_fix_index (git_tree * tree , PyObject * py_index )
493
+ Tree_fix_index (const git_tree * tree , PyObject * py_index )
495
494
{
496
495
long index ;
497
496
size_t len ;
@@ -838,14 +837,13 @@ PyNumberMethods Tree_as_number = {
838
837
0 , /* nb_inplace_xor */
839
838
0 , /* nb_inplace_or */
840
839
0 , /* nb_floor_divide */
841
- Tree_getitem , /* nb_true_divide */
840
+ ( binaryfunc ) Tree_getitem , /* nb_true_divide */
842
841
0 , /* nb_inplace_floor_divide */
843
842
0 , /* nb_inplace_true_divide */
844
843
0 , /* nb_index */
845
- #if PY_MAJOR_VERSION >= 3
846
- 0 , /* nb_matrix_multiply */
847
- 0 , /* nb_inplace_matrix_multiply */
848
- #endif
844
+ // Python 3.5+
845
+ // 0, /* nb_matrix_multiply */
846
+ // 0, /* nb_inplace_matrix_multiply */
849
847
};
850
848
851
849
PyDoc_STRVAR (Tree__doc__ , "Tree objects." );
0 commit comments