summaryrefslogtreecommitdiff
path: root/src/libical
diff options
context:
space:
mode:
Diffstat (limited to 'src/libical')
-rw-r--r--src/libical/icalcomponent.c2
-rw-r--r--src/libical/icaltz-util.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libical/icalcomponent.c b/src/libical/icalcomponent.c
index cef5df5d..bc160a04 100644
--- a/src/libical/icalcomponent.c
+++ b/src/libical/icalcomponent.c
@@ -865,7 +865,7 @@ void icalcomponent_foreach_recurrence(icalcomponent *comp,
icaltimetype mystart = start;
/* make sure we include any recurrence that ends in timespan */
- icaltime_adjust(&mystart, 0, 0, 0, -(int)dtduration);
+ icaltime_adjust(&mystart, 0, 0, 0, -(int)(long)dtduration);
icalrecur_iterator_set_start(rrule_itr, mystart);
}
diff --git a/src/libical/icaltz-util.c b/src/libical/icaltz-util.c
index 20642874..ab5b6f85 100644
--- a/src/libical/icaltz-util.c
+++ b/src/libical/icaltz-util.c
@@ -631,8 +631,8 @@ icalcomponent *icaltzutil_fetch_timezone(const char *location)
/* Read the footer */
if (trans_size == 8 &&
- (footer[0] = fgetc(f)) == '\n' &&
- fgets(footer+1, (int) sizeof(footer)-1, f) &&
+ (footer[0] = (char)fgetc(f)) == '\n' &&
+ fgets(footer+1, (int)sizeof(footer)-1, f) &&
footer[strlen(footer)-1] == '\n') {
tzstr = footer+1;
}