# HG changeset patch # User lbessard # Date 1214551767 -7200 # Node ID 4debc565109dab47b90c6e64696d413f15959d38 # Parent a9b4af71cfa4c86d425e82d53d79a6521bbb8b8b Bug on __TIME_CMP fixed diff -r a9b4af71cfa4 -r 4debc565109d lib/iec_std_lib.h --- a/lib/iec_std_lib.h Wed Jun 25 18:47:07 2008 +0200 +++ b/lib/iec_std_lib.h Fri Jun 27 09:29:27 2008 +0200 @@ -97,7 +97,7 @@ typedef IEC_DT DT; typedef IEC_TOD TOD; -#define __TIME_CMP(t1, t2) (t2.tv_sec == t1.tv_sec ? t2.tv_nsec - t1.tv_nsec : t1.tv_sec - t2.tv_sec) +#define __TIME_CMP(t1, t2) (t2.tv_sec == t1.tv_sec ? t1.tv_nsec - t2.tv_nsec : t1.tv_sec - t2.tv_sec) extern TIME __CURRENT_TIME; typedef IEC_STRING STRING;