diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alExtension.c | 2 | ||||
-rw-r--r-- | OpenAL32/alState.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c index 1d0928d2..269590e9 100644 --- a/OpenAL32/alExtension.c +++ b/OpenAL32/alExtension.c @@ -223,7 +223,7 @@ ALAPI ALboolean ALAPIENTRY alIsExtensionPresent(const ALchar *extName) ext = strdup(extName); ptr = ext; do { - *ptr = toupper(*ptr); + *ptr = (char)toupper(*ptr); } while(*(ptr++)); SuspendContext(pContext); diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 06da8a88..ca6d749a 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -308,19 +308,19 @@ ALAPI ALvoid ALAPIENTRY alGetBooleanv(ALenum pname,ALboolean *data) switch (pname) { case AL_DOPPLER_FACTOR: - *data = (Context->DopplerFactor != 0.0f) ? AL_TRUE : AL_FALSE; + *data = (ALboolean)((Context->DopplerFactor != 0.0f) ? AL_TRUE : AL_FALSE); break; case AL_DOPPLER_VELOCITY: - *data = (Context->DopplerVelocity != 0.0f) ? AL_TRUE : AL_FALSE; + *data = (ALboolean)((Context->DopplerVelocity != 0.0f) ? AL_TRUE : AL_FALSE); break; case AL_DISTANCE_MODEL: - *data = (Context->DistanceModel == AL_INVERSE_DISTANCE_CLAMPED) ? AL_TRUE : AL_FALSE; + *data = (ALboolean)((Context->DistanceModel == AL_INVERSE_DISTANCE_CLAMPED) ? AL_TRUE : AL_FALSE); break; case AL_SPEED_OF_SOUND: - *data = (Context->flSpeedOfSound != 0.0f) ? AL_TRUE : AL_FALSE; + *data = (ALboolean)((Context->flSpeedOfSound != 0.0f) ? AL_TRUE : AL_FALSE); break; default: |