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:
sezero 2011-02-10 18:20:33 +00:00
parent 0099434147
commit ed1958d1ff

View file

@ -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;
}