Skip to content

Commit

Permalink
Fix integer cast order
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-daniel committed Aug 21, 2022
1 parent 0bd7daa commit 2d6331c
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 2d6331c

Please sign in to comment.