Merge pull request #2001 from cgohlke/patch-1

Fix msvc9/10 compile error
This commit is contained in:
wiredfool 2016-06-30 22:58:12 +01:00 committed by GitHub
commit c6aff1d320

View File

@ -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;
}