From 7f696d51f53b83edeeb215afe72032d1d8cac3fa Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 13 Mar 2011 14:39:22 +0100 Subject: [PATCH] [CPML] Corrected assumption in cpml_path_is_empty() The above macro was expecting a parameter of CpmlPath * type. Do not assume it but cast the pointer instead. --- src/cpml/cpml-segment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpml/cpml-segment.h b/src/cpml/cpml-segment.h index 4406d4f1..c615b2d5 100644 --- a/src/cpml/cpml-segment.h +++ b/src/cpml/cpml-segment.h @@ -45,8 +45,8 @@ cairo_bool_t void cpml_segment_copy (CpmlSegment *segment, const CpmlSegment *src); #define cpml_path_is_empty(cpml_path) \ - ((cpml_path) == NULL || (cpml_path)->data == NULL || \ - (cpml_path)->num_data <= 0) + ((cpml_path) == NULL || ((cairo_path_t *) cpml_path)->data == NULL || \ + ((cairo_path_t *) cpml_path)->num_data <= 0) void cpml_segment_reset (CpmlSegment *segment); cairo_bool_t cpml_segment_next (CpmlSegment *segment); -- 2.11.4.GIT