mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
a27ed8168d
commit
a7f66a4338
@ -39,7 +39,7 @@ PDFDoc_load(PDFDoc *self, PyObject *args) {
|
|||||||
|
|
||||||
if (PyArg_ParseTuple(args, "s#", &buffer, &size)) {
|
if (PyArg_ParseTuple(args, "s#", &buffer, &size)) {
|
||||||
try {
|
try {
|
||||||
self->doc->Load(buffer, size);
|
self->doc->Load(buffer, (long)size);
|
||||||
} catch(const PdfError & err) {
|
} catch(const PdfError & err) {
|
||||||
podofo_set_exception(err);
|
podofo_set_exception(err);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user