mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Fix CTime unit test failure with MinGW build
This commit is contained in:
@@ -96,7 +96,7 @@ namespace BlackMisc
|
|||||||
double hr = CMathUtils::trunc(currentValue / 3600);
|
double hr = CMathUtils::trunc(currentValue / 3600);
|
||||||
double remaining = std::fmod(currentValue, 3600);
|
double remaining = std::fmod(currentValue, 3600);
|
||||||
double mi = CMathUtils::trunc(remaining / 60);
|
double mi = CMathUtils::trunc(remaining / 60);
|
||||||
double se = std::fmod(remaining, 60);
|
double se = CMathUtils::trunc(std::fmod(remaining, 60));
|
||||||
|
|
||||||
QList<int> parts;
|
QList<int> parts;
|
||||||
parts << hr << mi << se;
|
parts << hr << mi << se;
|
||||||
|
|||||||
Reference in New Issue
Block a user