mirror of
https://github.com/apache/nuttx.git
synced 2025-12-20 04:09:12 +08:00
sched: timer: Fix inappropriate cast in timer_settime()
This commit is contained in:
committed by
patacongo
parent
f51e478ad8
commit
3f37dddea7
@@ -372,7 +372,7 @@ int timer_settime(timer_t timerid, int flags,
|
|||||||
|
|
||||||
timer->pt_last = delay;
|
timer->pt_last = delay;
|
||||||
ret = wd_start(timer->pt_wdog, delay, (wdentry_t)timer_timeout,
|
ret = wd_start(timer->pt_wdog, delay, (wdentry_t)timer_timeout,
|
||||||
1, (uint32_t)((wdparm_t)timer));
|
1, (wdparm_t)timer);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
set_errno(-ret);
|
set_errno(-ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user