ossp-pkg/tai/tai_lib.c 1.5 -> 1.6
--- tai_lib.c 2002/05/29 08:32:53 1.5
+++ tai_lib.c 2002/08/14 13:34:01 1.6
@@ -254,12 +254,13 @@
s1 = tai1->tai_sec + (60 * tai1->tai_min) + (60 * 60 * tai1->tai_hour) + (60 * 60 * 24 * tai1->tai_yday) + (60 * 60 * 24 * 365 * tai1->tai_year) + tai1->tai_gmtoff;
s2 = tai2->tai_sec + (60 * tai2->tai_min) + (60 * 60 * tai2->tai_hour) + (60 * 60 * 24 * tai2->tai_yday) + (60 * 60 * 24 * 365 * tai2->tai_year) + tai2->tai_gmtoff;
switch (op) {
- case TAI_OP_NE: rc = s2 != s1 ? TAI_OK: TAI_FALSE;
- case TAI_OP_EQ: rc = s2 == s1 ? TAI_OK: TAI_FALSE;
- case TAI_OP_LT: rc = s2 < s1 ? TAI_OK: TAI_FALSE;
- case TAI_OP_LE: rc = s2 <= s1 ? TAI_OK: TAI_FALSE;
- case TAI_OP_GT: rc = s2 > s1 ? TAI_OK: TAI_FALSE;
- case TAI_OP_GE: rc = s2 >= s1 ? TAI_OK: TAI_FALSE;
+ case TAI_OP_NE: rc = (s2 != s1 ? TAI_OK : TAI_FALSE); break;
+ case TAI_OP_EQ: rc = (s2 == s1 ? TAI_OK : TAI_FALSE); break;
+ case TAI_OP_LT: rc = (s2 < s1 ? TAI_OK : TAI_FALSE); break;
+ case TAI_OP_LE: rc = (s2 <= s1 ? TAI_OK : TAI_FALSE); break;
+ case TAI_OP_GT: rc = (s2 > s1 ? TAI_OK : TAI_FALSE); break;
+ case TAI_OP_GE: rc = (s2 >= s1 ? TAI_OK : TAI_FALSE); break;
+ default: break; /* FIXME */
}
}
va_end(ap);
|
|