svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / gameengine / VideoTexture / VideoBase.cpp
index 5d449a158d855bb17e7f803d0e7f053013a7995c..5de7a9e80a9d180473756ef81fe4cee9fa096e65 100644 (file)
@@ -167,13 +167,13 @@ PyObject * Video_getRepeat (PyImage * self, void * closure)
 int Video_setRepeat (PyImage * 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, "The value must be an int");
                return -1;
        }
        // set repeat
-       getVideo(self)->setRepeat(int(PyInt_AsLong(value)));
+       getVideo(self)->setRepeat(int(PyLong_AsSsize_t(value)));
        // success
        return 0;
 }