Skip to content

Commit e46eb72

Browse files
authored
Merge pull request #6567 from SimonRit/win_timestamp_floor
COMP: Remove conversion warnings after floor in RealTimeClock
2 parents c419c38 + 4bb2c25 commit e46eb72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/Core/Common/src/itkRealTimeClock.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ RealTimeClock::GetRealTimeStamp() const
110110
using SecondsCounterType = RealTimeStamp::SecondsCounterType;
111111
using MicroSecondsCounterType = RealTimeStamp::MicroSecondsCounterType;
112112

113-
SecondsCounterType iseconds = std::floor(seconds);
114-
MicroSecondsCounterType useconds = std::floor((seconds - iseconds) * 1e6);
113+
SecondsCounterType iseconds = itk::Math::Floor<SecondsCounterType>(seconds);
114+
MicroSecondsCounterType useconds = itk::Math::Floor<MicroSecondsCounterType>((seconds - iseconds) * 1e6);
115115

116116
RealTimeStamp value(iseconds, useconds);
117117
return value;

0 commit comments

Comments
 (0)