From 3a4a961ff50bbff02d3dc5a83b23711c45028a22 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sat, 24 Jan 2009 10:54:44 +0000 Subject: [PATCH] Fixed the CLOCK_LT again. The previous revert was incorrect: the conditional was missing due to a bad copy-and-paste on my part :( --- core/sys/clock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sys/clock.h b/core/sys/clock.h index 47f87959e..93c451324 100644 --- a/core/sys/clock.h +++ b/core/sys/clock.h @@ -53,7 +53,7 @@ * * Author: Adam Dunkels * - * $Id: clock.h,v 1.9 2009/01/23 17:16:38 adamdunkels Exp $ + * $Id: clock.h,v 1.10 2009/01/24 10:54:44 adamdunkels Exp $ */ #ifndef __CLOCK_H__ #define __CLOCK_H__ @@ -68,7 +68,7 @@ * clock time values. * */ -#define CLOCK_LT(a, b) ((clock_time_t)((a) - (b))) +#define CLOCK_LT(a, b) ((clock_time_t)((a) - (b)) < 0) /** * Initialize the clock library.