pkgsrc/graphics/py-cairo/patches/patch-ab
wiz 34fc129e81 Update to 1.8.8:
General Changes:
    Pycairo 1.8.8 requires cairo 1.8.8 (or later).
    Move from CVS to git.
    Add support for the waf build tool.

Updated methods
    The PDF/PS/SVGSurface constructors now accept None as a filename.
2009-08-31 08:04:32 +00:00

29 lines
953 B
Text

$NetBSD: patch-ab,v 1.3 2009/08/31 08:04:32 wiz Exp $
--- src/matrix.c.orig 2009-08-26 10:59:35.000000000 +0000
+++ src/matrix.c
@@ -206,7 +206,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:
return Py_BuildValue("d", o->matrix.xx);
@@ -265,14 +265,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 */