diff --git a/test-s390x.c b/test-s390x.c index f0e77f6..1bf1b38 100644 --- a/test-s390x.c +++ b/test-s390x.c @@ -227,8 +227,7 @@ int main() now_local = *(localtime(&now)); now_gm = *(gmtime(&now)); - long int dayswest = - (now_gm.tm_year < now_local.tm_year ? -1 : + long int dayswest = (now_gm.tm_year < now_local.tm_year ? -1 : now_gm.tm_year > now_local.tm_year ? 1 : (now_gm.tm_mon < now_local.tm_mon ? -1 : now_gm.tm_mon > now_local.tm_mon ? 1 : @@ -240,5 +239,5 @@ int main() unsigned long int hours_since_1900 = ((unsigned long)now / 3600) - hourswest + 613608; unsigned long int days_since_1900 = (hours_since_1900 + 6) / 24; int candles = hebrew_calendar_hanukka_candles(days_since_1900); - return printf("candles = %d\n", candles); + return printf("candles = %d\n", candles) > 0; }