mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 14:54:08 +02:00
...
This commit is contained in:
parent
a27ed8168d
commit
a7f66a4338
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue