From b0524947e5a86bdbdd58dab42de3363a627e6910 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Jun 2016 21:33:50 -0400 Subject: sched: Use uint_fast8_t for return type of timers Some architectures are faster passing regular integers than 8bit integers. Use uint_fast8_t so that the architecture chooses the appropriate type. Signed-off-by: Kevin O'Connor --- src/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sched.h') diff --git a/src/sched.h b/src/sched.h index be73ce65..aabb17b0 100644 --- a/src/sched.h +++ b/src/sched.h @@ -15,7 +15,7 @@ // Timer structure for scheduling timed events (see sched_timer() ) struct timer { struct timer *next; - uint8_t (*func)(struct timer*); + uint_fast8_t (*func)(struct timer*); uint32_t waketime; }; -- cgit v1.2.3-70-g09d2