aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/cal-recur.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/calendar/cal-util/cal-recur.c b/calendar/cal-util/cal-recur.c
index 2fad53ca63..9c35e26b92 100644
--- a/calendar/cal-util/cal-recur.c
+++ b/calendar/cal-util/cal-recur.c
@@ -575,9 +575,8 @@ array_to_list (short *array, int max_elements)
l = NULL;
- for (i = 0; i < max_elements && array[i] != SHRT_MAX; i++)
+ for (i = 0; i < max_elements && array[i] != ICAL_RECURRENCE_ARRAY_MAX; i++)
l = g_list_prepend (l, GINT_TO_POINTER ((int) (array[i])));
-
return g_list_reverse (l);
}