mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fix floating point comparison
This commit is contained in:
@@ -40,7 +40,7 @@ namespace BlackMisc
|
||||
|
||||
int compare(double a, double b)
|
||||
{
|
||||
if (a == b) return 0;
|
||||
if (qFuzzyCompare(a, b)) return 0;
|
||||
return a < b ? -1 : 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user