Add some casts

This commit is contained in:
Chris Robinson 2007-12-06 22:12:29 -08:00
parent 2ecb878e68
commit 3e92e6c4f0
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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: