This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 3f37ddd sched: timer: Fix inappropriate cast in timer_settime()
3f37ddd is described below
commit 3f37dddea710859aa7a43ac884df0c274c486570
Author: Masayuki Ishikawa <[email protected]>
AuthorDate: Wed Jan 8 23:51:56 2020 +0900
sched: timer: Fix inappropriate cast in timer_settime()
---
sched/timer/timer_settime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/timer/timer_settime.c b/sched/timer/timer_settime.c
index 5c92605..06bc5ac 100644
--- a/sched/timer/timer_settime.c
+++ b/sched/timer/timer_settime.c
@@ -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);