mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
replace isfinite with std::isfinite
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
/// This function is used to ensure that a floating point number is not a NaN or infinity.
|
/// This function is used to ensure that a floating point number is not a NaN or infinity.
|
||||||
inline bool b2IsValid(float x)
|
inline bool b2IsValid(float x)
|
||||||
{
|
{
|
||||||
return isfinite(x);
|
return std::isfinite(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define b2Sqrt(x) sqrtf(x)
|
#define b2Sqrt(x) sqrtf(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user