Skip to content

Commit

Permalink
Revert std::lround usage
Browse files Browse the repository at this point in the history
FIXES #381
  • Loading branch information
dantti committed Jan 22, 2025
1 parent 9e4ebc0 commit 4f188ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QXlsx/source/xlsxutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ QVariant datetimeFromNumber(double num, bool is1904)
num = num - 1;
}

auto msecs = static_cast<qint64>(std::lround(num * 1000 * 60 * 60 * 24.0));
auto msecs = static_cast<qint64>(num * 1000 * 60 * 60 * 24.0 + 0.5);

if (is1904)
msecs += msecs1904;
Expand Down

0 comments on commit 4f188ed

Please sign in to comment.