diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2022-08-10 16:29:39 +0200 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-08-24 16:08:18 +0200 |
| commit | 0acb56518d72c09650dd83ca34a7d5bb0763b06a (patch) | |
| tree | 2c620326aa2ac4b3270bcf00cf2c4fb877f5959a /src/plugins/platforms/wasm/qwasmwindowstack.cpp | |
| parent | 854cb55987b3de3c8379db0e7e95b4c94d4e6588 (diff) | |
Rearrange mapLocalTime() so its millis always have the right sign
Doing a simple division to get seconds, before using rounding-down
division to get days and positive seconds, saves the need to check for
seconds and millis in opposite directions that might cause a needless
overflow when computing the final result.
Change-Id: Ia4f95bb0510eb4f2c1f9131a34d317bd41bbed2a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindowstack.cpp')
0 files changed, 0 insertions, 0 deletions
