aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorTomas Ogren <stric@ing.umu.se>1999-03-24 06:30:59 +0800
committerTomas Ă–gren <stric@src.gnome.org>1999-03-24 06:30:59 +0800
commit6dca9d9fe0479dc80c92fed889ebb74f4e126b5a (patch)
treed9e3891fc9dd1dc70a08b19e6b8c2bff7d6c0093 /calendar
parentc316802b49bedd6af5ffca794ff73dc00fc13571 (diff)
downloadgsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.tar
gsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.tar.gz
gsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.tar.bz2
gsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.tar.lz
gsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.tar.xz
gsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.tar.zst
gsoc2013-evolution-6dca9d9fe0479dc80c92fed889ebb74f4e126b5a.zip
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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/cal-util/calobj.c2
-rw-r--r--calendar/calobj.c2
-rw-r--r--calendar/pcs/calobj.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index db27f8abd3..5173bc1e80 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -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 {
diff --git a/calendar/calobj.c b/calendar/calobj.c
index db27f8abd3..5173bc1e80 100644
--- a/calendar/calobj.c
+++ b/calendar/calobj.c
@@ -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 {
diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c
index db27f8abd3..5173bc1e80 100644
--- a/calendar/pcs/calobj.c
+++ b/calendar/pcs/calobj.c
@@ -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 {