This commit is contained in:
Kovid Goyal 2012-12-01 14:43:27 +05:30
parent a27ed8168d
commit a7f66a4338

View File

@ -39,7 +39,7 @@ PDFDoc_load(PDFDoc *self, PyObject *args) {
if (PyArg_ParseTuple(args, "s#", &buffer, &size)) {
try {
self->doc->Load(buffer, size);
self->doc->Load(buffer, (long)size);
} catch(const PdfError & err) {
podofo_set_exception(err);
return NULL;