File: 0002-icalrecur.c-fix-compile-on-ARM.patch

package info (click to toggle)
libical 2.0.0-0.5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 6,604 kB
  • ctags: 5,318
  • sloc: ansic: 31,514; cpp: 6,461; perl: 1,762; python: 1,478; java: 1,424; yacc: 1,125; lex: 139; sh: 41; makefile: 12; php: 10
file content (31 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From e5ee4197384a68391cc1f09b4a5e13e5b6d8fa98 Mon Sep 17 00:00:00 2001
From: Allen Winter <allen.winter@kdab.com>
Date: Tue, 19 Jan 2016 16:39:42 -0500
Subject: [PATCH 2/3] icalrecur.c - fix compile on ARM fix provided by mcrha

---
 src/libical/icalrecur.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/src/libical/icalrecur.c
+++ b/src/libical/icalrecur.c
@@ -491,8 +491,8 @@
 
     while (n != 0) {
         int sign = 1;
-        char weekno;  /* note: Novell/Groupwise sends BYDAY=255SU,
-                         so we fit in a signed char to get -1 SU for last Sun */
+        signed char weekno;  /* note: Novell/Groupwise sends BYDAY=255SU,
+                                so we fit in a signed char to get -1 SU for last Sun */
         icalrecurrencetype_weekday wd;
 
         if (i == ICAL_BY_DAY_SIZE) {
@@ -510,7 +510,7 @@
         }
 
         /* Get Optional weekno */
-        weekno = (char)strtol(t, &t, 10);
+        weekno = (signed char)strtol(t, &t, 10);
         if (weekno < 0) {
             weekno = -weekno;
             sign = -1;