mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Fix msvc9/10 compile error
This commit is contained in:
parent
54998fc7e8
commit
525ba37722
|
@ -56,10 +56,11 @@ j2k_read(void *p_buffer, OPJ_SIZE_T p_nb_bytes, void *p_user_data)
|
||||||
static OPJ_OFF_T
|
static OPJ_OFF_T
|
||||||
j2k_skip(OPJ_OFF_T p_nb_bytes, void *p_user_data)
|
j2k_skip(OPJ_OFF_T p_nb_bytes, void *p_user_data)
|
||||||
{
|
{
|
||||||
|
off_t pos;
|
||||||
ImagingCodecState state = (ImagingCodecState)p_user_data;
|
ImagingCodecState state = (ImagingCodecState)p_user_data;
|
||||||
|
|
||||||
_imaging_seek_pyFd(state->fd, p_nb_bytes, SEEK_CUR);
|
_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;
|
return pos ? pos : (OPJ_OFF_T)-1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user