From 2873abcbc056ca2123382b2b1e08b8bd94d608a4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 11 Jan 2018 10:55:35 -0800 Subject: Fix up some types for MSVC --- Alc/backends/dsound.c | 2 +- Alc/backends/winmm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/backends') diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c index f88a50c1..8a0a30cb 100644 --- a/Alc/backends/dsound.c +++ b/Alc/backends/dsound.c @@ -948,7 +948,7 @@ static ALCuint ALCdsoundCapture_availableSamples(ALCdsoundCapture *self) } done: - return ll_ringbuffer_read_space(self->Ring); + return (ALCuint)ll_ringbuffer_read_space(self->Ring); } diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c index 4e4d0c06..0fcab458 100644 --- a/Alc/backends/winmm.c +++ b/Alc/backends/winmm.c @@ -708,7 +708,7 @@ static ALCenum ALCwinmmCapture_captureSamples(ALCwinmmCapture *self, ALCvoid *bu static ALCuint ALCwinmmCapture_availableSamples(ALCwinmmCapture *self) { - return ll_ringbuffer_read_space(self->Ring); + return (ALCuint)ll_ringbuffer_read_space(self->Ring); } -- cgit v1.2.3