portability: fixing windows warnings

atan2->atan2f
This commit is contained in:
Mira Grudzinska 2022-01-20 13:52:57 +01:00 committed by JunsuChoi
parent 74a99867df
commit 18bf321d2c
2 changed files with 4 additions and 4 deletions

View file

@ -58,8 +58,8 @@
y = yStart;
while (y < yEnd) {
x1 = _xa;
x2 = _xb;
x1 = (int32_t)_xa;
x2 = (int32_t)_xb;
if (!region) {
minx = INT32_MAX;
@ -160,4 +160,4 @@ next:
xb = _xb;
ua = _ua;
va = _va;
}
}

View file

@ -47,7 +47,7 @@ static inline bool mathEqual(float a, float b)
static inline bool mathRightAngle(const Matrix* m)
{
auto radian = fabsf(atan2(m->e21, m->e11));
auto radian = fabsf(atan2f(m->e21, m->e11));
if (radian < FLT_EPSILON || mathEqual(radian, float(M_PI_2)) || mathEqual(radian, float(M_PI))) return true;
return false;
}