mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-28 19:05:49 +00:00
Refactoring
This commit is contained in:
parent
422447656b
commit
566bce1a9d
@ -198,7 +198,7 @@ inline bool isApproximatelyEqual(float value, float other) {
|
||||
return std::abs(value - other) <= FLT_EPSILON;
|
||||
}
|
||||
|
||||
static float SolveCubic(double a, double b, double c, double d) {
|
||||
static float SolveCubic(float a, float b, float c, float d) {
|
||||
if (isApproximatelyEqual(a, 0.0f)) {
|
||||
return SolveQuadratic(b, c, d);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user