From 4c76f32ddac5145231609b1cb4f28028abed814b Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Thu, 12 Sep 2019 03:14:01 -0700
Subject: Avoid implicit conversions with the examples and utils

---
 examples/alreverb.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'examples/alreverb.c')

diff --git a/examples/alreverb.c b/examples/alreverb.c
index e1d3c207..68f0269f 100644
--- a/examples/alreverb.c
+++ b/examples/alreverb.c
@@ -209,7 +209,7 @@ static ALuint LoadSound(const char *filename)
      * close the file. */
     buffer = 0;
     alGenBuffers(1, &buffer);
-    alBufferData(buffer, format, sample->buffer, slen, sample->actual.rate);
+    alBufferData(buffer, format, sample->buffer, (ALsizei)slen, (ALsizei)sample->actual.rate);
     Sound_FreeSample(sample);
 
     /* Check if an error occured, and clean up if so. */
@@ -309,18 +309,18 @@ int main(int argc, char **argv)
      * effectively copies the effect properties. You can modify or delete the
      * effect object afterward without affecting the effect slot.
      */
-    alAuxiliaryEffectSloti(slot, AL_EFFECTSLOT_EFFECT, effect);
+    alAuxiliaryEffectSloti(slot, AL_EFFECTSLOT_EFFECT, (ALint)effect);
     assert(alGetError()==AL_NO_ERROR && "Failed to set effect slot");
 
     /* Create the source to play the sound with. */
     source = 0;
     alGenSources(1, &source);
-    alSourcei(source, AL_BUFFER, buffer);
+    alSourcei(source, AL_BUFFER, (ALint)buffer);
 
     /* Connect the source to the effect slot. This tells the source to use the
      * effect slot 'slot', on send #0 with the AL_FILTER_NULL filter object.
      */
-    alSource3i(source, AL_AUXILIARY_SEND_FILTER, slot, 0, AL_FILTER_NULL);
+    alSource3i(source, AL_AUXILIARY_SEND_FILTER, (ALint)slot, 0, AL_FILTER_NULL);
     assert(alGetError()==AL_NO_ERROR && "Failed to setup sound source");
 
     /* Play the sound until it finishes. */
-- 
cgit v1.2.3