--- src/_image.cpp 2006-05-29 17:18:13.000000000 -0600 +++ /Users/bwaters/_today/_image.cpp 2006-08-30 21:01:53.000000000 -0600 @@ -1258,7 +1258,7 @@ imo->colsIn = x; size_t NUMBYTES(imo->colsIn * imo->rowsIn * imo->BPP); - int buflen; + Py_ssize_t buflen; const agg::int8u *rawbuf; if (PyObject_AsReadBuffer(bufin, reinterpret_cast(&rawbuf), &buflen) != 0) throw Py::ValueError("Cannot get buffer from object.");