svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / gameengine / VideoTexture / FilterNormal.cpp
index 9a2b1e90d5a4c9836964ddcb7baa70583c42fb3a..002be6c3189ed0bc73131d436d06d5d6c644074f 100644 (file)
@@ -72,13 +72,13 @@ static PyObject * getColor (PyFilter * self, void * closure)
 static int setColor (PyFilter * self, PyObject * value, void * closure)
 {
        // check validity of parameter
-       if (value == NULL || !PyInt_Check(value))
+       if (value == NULL || !PyLong_Check(value))
        {
                PyErr_SetString(PyExc_TypeError, "filt.colorIdx = int: VideoTexture.FilterNormal, expected the value must be a int");
                return -1;
        }
        // set color index
-       getFilter(self)->setColor((unsigned short)(PyInt_AsLong(value)));
+       getFilter(self)->setColor((unsigned short)(PyLong_AsSsize_t(value)));
        // success
        return 0;
 }