diff options
author | Chris Robinson <[email protected]> | 2007-12-06 22:12:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-06 22:12:29 -0800 |
commit | 3e92e6c4f0d265809f6a4145306a9ad881dbb2aa (patch) | |
tree | 359339606d59f55af60b1f500014bf1d2e7c4735 /OpenAL32/alState.c | |
parent | 2ecb878e68c9bc5511bf6bb422e28baec6a75ea0 (diff) |
Add some casts
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 8 |
1 files changed, 4 insertions, 4 deletions
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: |