diff options
Diffstat (limited to 'src/libicalss')
-rw-r--r-- | src/libicalss/icalgauge.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libicalss/icalgauge.c b/src/libicalss/icalgauge.c index 43d7b549..101254f6 100644 --- a/src/libicalss/icalgauge.c +++ b/src/libicalss/icalgauge.c @@ -28,6 +28,7 @@ #include "icalerror.h" #include "icalvalue.h" +#include <stddef.h> /* for ptrdiff_t */ #include <stdlib.h> extern int ssparse(void); @@ -289,7 +290,7 @@ int icalgauge_compare(icalgauge *gauge, icalcomponent *comp) /* Check that this component is one of the FROM types */ local_pass = 0; for (e = pvl_head(gauge->from); e != 0; e = pvl_next(e)) { - icalcomponent_kind k = (icalcomponent_kind) pvl_data(e); + icalcomponent_kind k = (icalcomponent_kind)(ptrdiff_t)pvl_data(e); if (k == icalcomponent_isa(inner)) { local_pass = 1; @@ -456,7 +457,7 @@ void icalgauge_dump(icalgauge *gauge) printf("--- From ---\n"); for (p = pvl_head(gauge->from); p != 0; p = pvl_next(p)) { - icalcomponent_kind k = (icalcomponent_kind) pvl_data(p); + icalcomponent_kind k = (icalcomponent_kind)(ptrdiff_t)pvl_data(p); printf("%s\n", icalenum_component_kind_to_string(k)); } |