mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[posix-app] resolve "implicit conversion changes" warnings (#3426)
This commit is contained in:
@@ -146,7 +146,7 @@ void otSimSendSleepEvent(const struct timeval *aTimeout)
|
||||
{
|
||||
struct Event event;
|
||||
|
||||
event.mDelay = aTimeout->tv_sec * kUsPerSecond + aTimeout->tv_usec;
|
||||
event.mDelay = (uint64_t)aTimeout->tv_sec * kUsPerSecond + (uint64_t)aTimeout->tv_usec;
|
||||
event.mEvent = OT_SIM_EVENT_ALARM_FIRED;
|
||||
event.mDataLength = 0;
|
||||
|
||||
@@ -203,7 +203,7 @@ void otSimProcess(otInstance *aInstance, const fd_set *aReadFdSet, const fd_set
|
||||
|
||||
void otSimGetTime(struct timeval *aTime)
|
||||
{
|
||||
aTime->tv_sec = sNow / kUsPerSecond;
|
||||
aTime->tv_sec = (time_t)sNow / kUsPerSecond;
|
||||
aTime->tv_usec = sNow % kUsPerSecond;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user