]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/libpy.c
Gave wxWindow.GetHandle something to do on wxMac, although it won't
[wxWidgets.git] / wxPython / src / libpy.c
index f53df745f207fcb3736919ba9f3db8df1c3e5d6a..9c0149bcffd0995bc0a15725d0bb97b1ef1124a3 100644 (file)
@@ -692,7 +692,7 @@ SWIGRUNTIME(long)
 SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
                         long min_value, long max_value)
 {
-  long value = PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj);
+  long value = PyInt_Check(obj) ? PyInt_AsLong(obj) : (long)PyLong_AsLongLong(obj);
   if (!PyErr_Occurred()) {
     if (value < min_value) {
       PyObject *err =