From b258a99e22e5aca86a92660e195688e858b6a3ad Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Fri, 23 Jan 2009 16:13:57 +0000 Subject: [PATCH] Reverted CLOCK_LT to the previous version, which upon closer examination seems to be correct. The new version did not work correctly on the minimal-net platform. --- core/sys/clock.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/sys/clock.h b/core/sys/clock.h index 1fdcb0efa..11c5c3d74 100644 --- a/core/sys/clock.h +++ b/core/sys/clock.h @@ -53,7 +53,7 @@ * * Author: Adam Dunkels * - * $Id: clock.h,v 1.7 2008/08/15 19:16:09 adamdunkels Exp $ + * $Id: clock.h,v 1.8 2009/01/23 16:13:57 adamdunkels Exp $ */ #ifndef __CLOCK_H__ #define __CLOCK_H__ @@ -68,8 +68,7 @@ * clock time values. * */ -#define CLOCK_LT(a, b) ((clock_time_t)((a) - (b)) < \ - ((clock_time_t)(~((clock_time_t)0)) >> 1)) +#define CLOCK_LT(a, b) ((clock_time_t)((a) - (b)) /** * Initialize the clock library.