mirror of
https://github.com/apache/nuttx.git
synced 2025-12-19 10:54:48 +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;
|
||||
ret = wd_start(timer->pt_wdog, delay, (wdentry_t)timer_timeout,
|
||||
1, (uint32_t)((wdparm_t)timer));
|
||||
1, (wdparm_t)timer);
|
||||
if (ret < 0)
|
||||
{
|
||||
set_errno(-ret);
|
||||
|
||||
Reference in New Issue
Block a user