refactor(Core/Misc): fmod() to std::fmod() (#9796)

- prefer std functions over C functions
This commit is contained in:
Kitzunu
2021-12-21 05:16:59 +01:00
committed by GitHub
parent 6b259cd14b
commit 7617ae4645
3 changed files with 5 additions and 5 deletions

View File

@@ -446,11 +446,11 @@ struct Position
if (o < 0)
{
float mod = o * -1;
mod = fmod(mod, 2.0f * static_cast<float>(M_PI));
mod = std::fmod(mod, 2.0f * static_cast<float>(M_PI));
mod = -mod + 2.0f * static_cast<float>(M_PI);
return mod;
}
return fmod(o, 2.0f * static_cast<float>(M_PI));
return std::fmod(o, 2.0f * static_cast<float>(M_PI));
}
};