X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5633576a88598b7a204313f86f68967437f6dff..c4287548985b4a8246eb1d9b4ced2f346fc95253:/wxPython/src/_bitmap.i diff --git a/wxPython/src/_bitmap.i b/wxPython/src/_bitmap.i index bd0600d824..93fa2a2b93 100644 --- a/wxPython/src/_bitmap.i +++ b/wxPython/src/_bitmap.i @@ -150,8 +150,8 @@ bit depths, the behaviour is platform dependent.", ""); %RenameCtor(BitmapFromBits, wxBitmap(PyObject* bits, int width, int height, int depth=1 )) { - char* buf; - int length; + char* buf; + Py_ssize_t length; PyString_AsStringAndSize(bits, &buf, &length); return new wxBitmap(buf, width, height, depth); }