Added 2 paranthesis.. "foobar = d / 60*60" is _NOT_ the same as "foobar =

1999-03-23  Tomas Ogren  <stric@ing.umu.se>

* gnomecal/calobj.c: Added 2 paranthesis..
"foobar = d / 60*60" is _NOT_ the same as "foobar = d / (60*60)"
which caused heavy alarm-corruption with alarms between 2 hrs and
2 days.

svn path=/trunk/; revision=776
This commit is contained in:
Tomas Ogren
1999-03-23 22:30:59 +00:00
committed by Tomas Ögren
parent c316802b49
commit 6dca9d9fe0
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -449,7 +449,7 @@ setup_alarm_at (iCalObject *ico, CalendarAlarm *alarm, char *iso_time, VObject *
alarm->count = d / HOURS (24);
alarm->units = ALARM_DAYS;
} else {
alarm->count = d / 60*60;
alarm->count = d / (60*60);
alarm->units = ALARM_HOURS;
}
} else {
+1 -1
View File
@@ -449,7 +449,7 @@ setup_alarm_at (iCalObject *ico, CalendarAlarm *alarm, char *iso_time, VObject *
alarm->count = d / HOURS (24);
alarm->units = ALARM_DAYS;
} else {
alarm->count = d / 60*60;
alarm->count = d / (60*60);
alarm->units = ALARM_HOURS;
}
} else {
+1 -1
View File
@@ -449,7 +449,7 @@ setup_alarm_at (iCalObject *ico, CalendarAlarm *alarm, char *iso_time, VObject *
alarm->count = d / HOURS (24);
alarm->units = ALARM_DAYS;
} else {
alarm->count = d / 60*60;
alarm->count = d / (60*60);
alarm->units = ALARM_HOURS;
}
} else {