Skip to content

Commit

Permalink
Merge pull request #2001 from cgohlke/patch-1
Browse files Browse the repository at this point in the history
Fix msvc9/10 compile error
  • Loading branch information
wiredfool committed Jun 30, 2016
2 parents 54998fc + 525ba37 commit c6aff1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libImaging/Jpeg2KDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ j2k_read(void *p_buffer, OPJ_SIZE_T p_nb_bytes, void *p_user_data)
static OPJ_OFF_T
j2k_skip(OPJ_OFF_T p_nb_bytes, void *p_user_data)
{
off_t pos;
ImagingCodecState state = (ImagingCodecState)p_user_data;

_imaging_seek_pyFd(state->fd, p_nb_bytes, SEEK_CUR);
off_t pos = _imaging_tell_pyFd(state->fd);
pos = _imaging_tell_pyFd(state->fd);

return pos ? pos : (OPJ_OFF_T)-1;
}
Expand Down

0 comments on commit c6aff1d

Please sign in to comment.