[radio-spinel] fix spinel_ssize_t to spinel_size_t conversion warning (#6281)

This commit is contained in:
Jonathan Hui
2021-03-16 11:38:57 -07:00
parent e7c71e3b11
commit b77fa94328
+2 -1
View File
@@ -2126,7 +2126,8 @@ void RadioSpinel<InterfaceType, ProcessContextType>::CalcRcpTimeOffset(void)
localTxTimestamp = otPlatTimeGet();
// Dummy timestamp payload to make request length same as response
error = GetWithParam(SPINEL_PROP_RCP_TIMESTAMP, buffer, packed, SPINEL_DATATYPE_UINT64_S, &remoteTimestamp);
error = GetWithParam(SPINEL_PROP_RCP_TIMESTAMP, buffer, static_cast<spinel_size_t>(packed),
SPINEL_DATATYPE_UINT64_S, &remoteTimestamp);
localRxTimestamp = otPlatTimeGet();