summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2021-04-18 15:52:13 -0400
committerAllen Winter <allen.winter@kdab.com>2021-04-18 15:52:13 -0400
commit10da7fa512a2e492bb930649bceb2e164d0eeb6f (patch)
tree0b71c4ee7b19979d4371466911a0fe6c8c911325
parentdce0d915548be0c2479fa3719fb42a0549400e6a (diff)
downloadlibical-git-10da7fa512a2e492bb930649bceb2e164d0eeb6f.tar.gz
src/libical/icalrecur.c - fix some types, found by splint
-rw-r--r--src/libical/icalrecur.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libical/icalrecur.c b/src/libical/icalrecur.c
index 41a805b6..10d6125b 100644
--- a/src/libical/icalrecur.c
+++ b/src/libical/icalrecur.c
@@ -1583,7 +1583,7 @@ static void set_datetime(icalrecur_iterator *impl, icaltimetype date)
(int32_t) (date.month - 1), /* UCal is 0-based */
(int32_t) date.day, &status);
} else {
- int32_t hour, minute, second;
+ int hour, minute, second;
__get_start_time(impl, date, &hour, &minute, &second);
@@ -1591,7 +1591,9 @@ static void set_datetime(icalrecur_iterator *impl, icaltimetype date)
(int32_t) date.year,
(int32_t) (date.month - 1), /* UCal is 0-based */
(int32_t) date.day,
- hour, minute, second,
+ (int32_t) hour,
+ (int32_t) minute,
+ (int32_t) second,
&status);
}