]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_ogg.c
stomping more size_t warnings
[xonotic/darkplaces.git] / snd_ogg.c
index cdc41f759a62b1dd078a000c39a65844b0fea872..ee2ecfcfc06a36940bb86df7391c8778d4a0d3f2 100644 (file)
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -452,7 +452,7 @@ static const sfxbuffer_t* OGG_FetchSound (channel_t* ch, unsigned int start, uns
        if (sb->offset <= start && sb->offset + sb->length >= start + nbsamples)
                return sb;
 
-       newlength = sb->offset + sb->length - start;
+       newlength = (int)(sb->offset + sb->length) - start;
 
        // If we need to skip some data before decompressing the rest, or if the stream has looped
        if (newlength < 0 || sb->offset > start)