Skip to content

Commit b73c449

Browse files
committed
Merge branch 'mc/fix-type-warnings'
* mc/fix-type-warnings: src:timer: fix conversion warning
2 parents 4b776f1 + cf72099 commit b73c449

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Timer {
9292
}
9393
}
9494

95-
task = NULL;
95+
task = (Task)NULL;
9696
}
9797

9898
/* Ticks the timer forward - call this function in loop() */
@@ -152,7 +152,7 @@ class Timer {
152152
Task
153153
task_id(const struct task * const t)
154154
{
155-
const Task id = (uintptr_t)t;
155+
const Task id = (Task)t;
156156

157157
return id ? id ^ t->id : id;
158158
}

0 commit comments

Comments
 (0)