Skip to content

Commit

Permalink
Fix incorrect validation (#333)
Browse files Browse the repository at this point in the history
Fixes warning: comparison of different enumeration types ('IPLDirectEffectFlags' and 'IPLTransmissionType') [-Wenum-compare]
Detected on Xcode 15.2
  • Loading branch information
danra authored Mar 20, 2024
1 parent 1b4821c commit bbf020a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/core/api_validation_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ std::string to_string(T* value)
VALIDATE_POINTER(value); \
if (value) { \
VALIDATE_IPLDirectEffectFlags(value->flags); \
VALIDATE_IPLTransmissionType(value->flags); \
VALIDATE_IPLTransmissionType(value->transmissionType); \
VALIDATE(IPLfloat32, value->distanceAttenuation, (0.0f <= value->distanceAttenuation && value->distanceAttenuation <= 1.0f)); \
for (int iBand = 0; iBand < 3; ++iBand) { \
VALIDATE(IPLfloat32, value->airAbsorption[iBand], (0.0f <= value->airAbsorption[iBand] && value->airAbsorption[iBand] <= 1.0f)); \
Expand Down

0 comments on commit bbf020a

Please sign in to comment.