Bug on __TIME_CMP fixed
authorlbessard
Fri, 27 Jun 2008 09:29:27 +0200
changeset 124 4debc565109d
parent 123 a9b4af71cfa4
child 125 7ec16536bc87
Bug on __TIME_CMP fixed
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;