mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +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;
|
||||
FILE *handle;
|
||||
qboolean pak;
|
||||
size_t length;
|
||||
long length;
|
||||
|
||||
/* Try to open the file */
|
||||
length = COM_FOpenFile(filename, &handle, NULL);
|
||||
length = (long) COM_FOpenFile(filename, &handle, NULL);
|
||||
pak = file_from_pak;
|
||||
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.start = ftell(handle);
|
||||
stream->fh.pos = 0;
|
||||
stream->fh.length = (int) length;
|
||||
stream->fh.length = length;
|
||||
stream->fh.pak = stream->pak = pak;
|
||||
return stream;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue