Skip to content

Commit

Permalink
Merge pull request #176 from nathaniel-daniel/fix-integer-cast-order
Browse files Browse the repository at this point in the history
Fix Integer Cast Order
  • Loading branch information
pombredanne authored Jan 14, 2023
2 parents b460e64 + 2d6331c commit 0995f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custompickle/load/loadbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ loadbuffer_init(LoadBuffer* input, CustompickleHeader* header, CustompickleFoote
return 0;
}

ret = fseek(input->file, -sizeof(CustompickleFooter), SEEK_END);
ret = fseek(input->file, -(long int)sizeof(CustompickleFooter), SEEK_END);
if (UNLIKELY(ret < 0)) {
PyErr_SetFromErrno(PyExc_IOError);
return 0;
Expand Down

0 comments on commit 0995f28

Please sign in to comment.