Skip to content

Commit 5c6eb7e

Browse files
authored
Casts for PosixRawTime. Fixes: #3070 (#3071)
1 parent 6a420e0 commit 5c6eb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Os/Posix/RawTime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Fw::SerializeStatus PosixRawTime::deserialize(Fw::SerializeBufferBase& buffer) {
6767
if (status != Fw::SerializeStatus::FW_SERIALIZE_OK) {
6868
return status;
6969
}
70-
this->m_handle.m_timespec = {sec, nsec};
70+
this->m_handle.m_timespec = {static_cast<time_t>(sec), static_cast<long>(nsec)};
7171
return Fw::SerializeStatus::FW_SERIALIZE_OK;
7272
}
7373

0 commit comments

Comments
 (0)