Commit ba107c11 authored by Jean-Claude BAU's avatar Jean-Claude BAU Committed by Adam Wujek

Fix time-out issue when time greater than 2^31-1

This happens whith BMCA time-out because it is initialized to 0. Then
the check of the time-out returns always 0. BMCA is then never called.
parent 4bfaea77
......@@ -35,7 +35,7 @@
#define time_after_eq(a,b) \
(typecheck(unsigned long, a) && \
typecheck(unsigned long, b) && \
((long)(a) - (long)(b) >= 0))
((unsigned long)(a) >= (unsigned long)(b)))
#define time_before_eq(a,b) time_after_eq(b,a)
#endif /* ifndef */
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment