diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 4103cf3ef0..7da3fb7211 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -30,6 +30,9 @@ * linked compenents anyway. */ #define CALENDARSPEC_COMPONENTS_MAX 240 +/* Let's make sure that the microsecond component is safe to be stored in an 'int' */ +assert_cc(INT_MAX >= USEC_PER_SEC); + static void chain_free(CalendarComponent *c) { CalendarComponent *n;