[gimp] plug-ins/pygimp: Fix setitem function signatures



commit 1d79b045e881a680037430bdac3328fc0f5b6c69
Author: Martin Nordholts <martinn src gnome org>
Date:   Fri Sep 3 08:20:00 2010 +0200

    plug-ins/pygimp: Fix setitem function signatures
    
    Use 'Py_ssize_t' not 'int' so we compile without warnings on 64-bit
    too.

 plug-ins/pygimp/pygimp-colors.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/pygimp/pygimp-colors.c b/plug-ins/pygimp/pygimp-colors.c
index cb8c7b2..2ed764f 100644
--- a/plug-ins/pygimp/pygimp-colors.c
+++ b/plug-ins/pygimp/pygimp-colors.c
@@ -1017,7 +1017,7 @@ hsv_getitem(PyObject *self, Py_ssize_t pos)
 }
 
 static int
-hsv_setitem(PyObject *self, int pos, PyObject *value)
+hsv_setitem(PyObject *self, Py_ssize_t pos, PyObject *value)
 {
     if (pos < 0)
         pos += 4;
@@ -1530,7 +1530,7 @@ hsl_getitem(PyObject *self, Py_ssize_t pos)
 }
 
 static int
-hsl_setitem(PyObject *self, int pos, PyObject *value)
+hsl_setitem(PyObject *self, Py_ssize_t pos, PyObject *value)
 {
     if (pos < 0)
         pos += 4;
@@ -2035,7 +2035,7 @@ cmyk_getitem(PyObject *self, Py_ssize_t pos)
 }
 
 static int
-cmyk_setitem(PyObject *self, int pos, PyObject *value)
+cmyk_setitem(PyObject *self, Py_ssize_t pos, PyObject *value)
 {
     if (pos < 0)
         pos += 5;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]