mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
snd_codec.c (S_CodecUtilOpen): minor cleanup (better type for length.)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@410 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
0099434147
commit
ed1958d1ff
1 changed files with 3 additions and 3 deletions
|
@ -227,10 +227,10 @@ snd_stream_t *S_CodecUtilOpen(const char *filename, snd_codec_t *codec)
|
||||||
snd_stream_t *stream;
|
snd_stream_t *stream;
|
||||||
FILE *handle;
|
FILE *handle;
|
||||||
qboolean pak;
|
qboolean pak;
|
||||||
size_t length;
|
long length;
|
||||||
|
|
||||||
/* Try to open the file */
|
/* Try to open the file */
|
||||||
length = COM_FOpenFile(filename, &handle, NULL);
|
length = (long) COM_FOpenFile(filename, &handle, NULL);
|
||||||
pak = file_from_pak;
|
pak = file_from_pak;
|
||||||
if (length == (size_t)-1)
|
if (length == (size_t)-1)
|
||||||
{
|
{
|
||||||
|
@ -244,7 +244,7 @@ snd_stream_t *S_CodecUtilOpen(const char *filename, snd_codec_t *codec)
|
||||||
stream->fh.file = handle;
|
stream->fh.file = handle;
|
||||||
stream->fh.start = ftell(handle);
|
stream->fh.start = ftell(handle);
|
||||||
stream->fh.pos = 0;
|
stream->fh.pos = 0;
|
||||||
stream->fh.length = (int) length;
|
stream->fh.length = length;
|
||||||
stream->fh.pak = stream->pak = pak;
|
stream->fh.pak = stream->pak = pak;
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue