mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix incorrect assertion comment
This commit is contained in:
parent
39da2b829c
commit
ffe9cc0671
@ -215,7 +215,7 @@ constexpr float operator/(Angle left, Angle right)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
constexpr Angle operator%(Angle left, Angle right)
|
constexpr Angle operator%(Angle left, Angle right)
|
||||||
{
|
{
|
||||||
assert(right.asDegrees() != 0 && "Angle::operator% cannot divide by 0");
|
assert(right.asDegrees() != 0 && "Angle::operator% cannot modulus by 0");
|
||||||
return degrees(priv::positiveRemainder(left.asDegrees(), right.asDegrees()));
|
return degrees(priv::positiveRemainder(left.asDegrees(), right.asDegrees()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user