summaryrefslogtreecommitdiff
path: root/graphics/py-cairo/patches/patch-ab
blob: 422a88cb60474faea2ea8310e10647fba64d576d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ab,v 1.2 2009/05/13 12:56:47 obache Exp $

--- cairo/pycairo-matrix.c.orig	2008-12-27 08:25:55.000000000 +0000
+++ cairo/pycairo-matrix.c
@@ -222,7 +222,7 @@ matrix_translate (PycairoMatrix *o, PyOb
 }
 
 static PyObject *
-matrix_item (PycairoMatrix *o, Py_ssize_t i)
+matrix_item (PycairoMatrix *o, int i)
 {
     switch (i) {
     case 0:
@@ -282,14 +282,13 @@ static PyNumberMethods matrix_as_number 
   0,	           /* nb_true_divide */
   0,		   /* nb_inplace_floor_divide */
   0,		   /* nb_inplace_true_divide */
-  (unaryfunc)0,	   /* nb_index */
 };
 
 static PySequenceMethods matrix_as_sequence = {
     0,                  		/* sq_length */
     0,                  		/* sq_concat */
     0,                  		/* sq_repeat */
-    (ssizeargfunc)matrix_item,		/* sq_item */
+    (intargfunc)matrix_item,		/* sq_item */
     0,                     		/* sq_slice */
     0,					/* sq_ass_item */
     0,					/* sq_ass_slice */