Skip to content

Commit

Permalink
Casts for PosixRawTime. Fixes: #3070 (#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch authored Dec 11, 2024
1 parent 6a420e0 commit 5c6eb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Os/Posix/RawTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Fw::SerializeStatus PosixRawTime::deserialize(Fw::SerializeBufferBase& buffer) {
if (status != Fw::SerializeStatus::FW_SERIALIZE_OK) {
return status;
}
this->m_handle.m_timespec = {sec, nsec};
this->m_handle.m_timespec = {static_cast<time_t>(sec), static_cast<long>(nsec)};
return Fw::SerializeStatus::FW_SERIALIZE_OK;
}

Expand Down

0 comments on commit 5c6eb7e

Please sign in to comment.