mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 23:11:41 +00:00
uniform pointer to int casting
This commit is contained in:
parent
8cac137c26
commit
7c92368ec1
1 changed files with 2 additions and 2 deletions
|
@ -1851,7 +1851,7 @@ sfvio_seek(sf_count_t offset, int whence, void* user_data)
|
|||
sample->userdata = (void *)offset;
|
||||
break;
|
||||
case SEEK_CUR:
|
||||
sample->userdata = (void *)((intptr_t)sample->userdata + offset);
|
||||
sample->userdata = (void *)((sf_count_t)sample->userdata + offset);
|
||||
break;
|
||||
case SEEK_END:
|
||||
sample->userdata = (void *)(sfvio_get_filelen(user_data) + offset);
|
||||
|
@ -1870,7 +1870,7 @@ sfvio_read(void* ptr, sf_count_t count, void* user_data)
|
|||
count = sfvio_get_filelen(user_data) - (sf_count_t)sample->userdata;
|
||||
|
||||
memcpy(ptr, (char *)sample->data + sample->start + (sf_count_t)sample->userdata, count);
|
||||
sample->userdata = (void *)((intptr_t)sample->userdata + count);
|
||||
sample->userdata = (void *)((sf_count_t)sample->userdata + count);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue