diff --git a/core/include/gz/msgs/convert/StdTypes.hh b/core/include/gz/msgs/convert/StdTypes.hh index 20e2bff8..94e7012b 100644 --- a/core/include/gz/msgs/convert/StdTypes.hh +++ b/core/include/gz/msgs/convert/StdTypes.hh @@ -47,7 +47,7 @@ inline void Set(gz::msgs::Time *_msg, gz::math::durationToSecNsec(_data); msgs::Time msg; _msg->set_sec(timeSecAndNsecs.first); - _msg->set_nsec(timeSecAndNsecs.second); + _msg->set_nsec(static_cast(timeSecAndNsecs.second)); } inline void Set(std::chrono::steady_clock::duration *_data,