diff options
author | Chris Robinson <[email protected]> | 2010-03-18 14:21:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-18 14:21:06 -0700 |
commit | 781444d12c6dc5d37a78fbbc8c9f6c24e1f3bc4d (patch) | |
tree | 77e5421a46a9f8a402ff13d35338a73199840c15 /Alc/wave.c | |
parent | b6571904ce351ab9aa54e9d030deb89afb5c07d8 (diff) |
Use size_t where appropriate
Spotted by Alam Arias
Diffstat (limited to 'Alc/wave.c')
-rw-r--r-- | Alc/wave.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -172,6 +172,7 @@ static ALCboolean wave_reset_playback(ALCdevice *device) { wave_data *data = (wave_data*)device->ExtraData; ALuint channels, bits, i; + size_t val; fseek(data->f, 0, SEEK_SET); clearerr(data->f); @@ -244,7 +245,7 @@ static ALCboolean wave_reset_playback(ALCdevice *device) fputc((i>>16)&0xff, data->f); fputc((i>>24)&0xff, data->f); // 16 byte GUID, sub-type format - i = fwrite(((bits==32) ? SUBTYPE_FLOAT : SUBTYPE_PCM), 1, 16, data->f); + val = fwrite(((bits==32) ? SUBTYPE_FLOAT : SUBTYPE_PCM), 1, 16, data->f); fprintf(data->f, "data"); fputc(0xFF, data->f); // 'data' header len; filled in at close |