From eaeda64620973d5400bdead1751423bc20e574e8 Mon Sep 17 00:00:00 2001 From: François Revel Date: Fri, 6 Apr 2012 23:50:20 +0000 Subject: Fix debug build (warnings about comparing different enums). svn path=/trunk/libcss/; revision=13810 --- src/select/properties/helpers.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/select/properties/helpers.c') diff --git a/src/select/properties/helpers.c b/src/select/properties/helpers.c index 24e193d..125f41e 100644 --- a/src/select/properties/helpers.c +++ b/src/select/properties/helpers.c @@ -52,10 +52,12 @@ css_error css__cascade_bg_border_color(uint32_t opv, css_style *style, uint16_t value = CSS_BACKGROUND_COLOR_INHERIT; css_color color = 0; - assert(CSS_BACKGROUND_COLOR_INHERIT == CSS_BORDER_COLOR_INHERIT); - assert(CSS_BACKGROUND_COLOR_COLOR == CSS_BORDER_COLOR_COLOR); - assert(CSS_BACKGROUND_COLOR_CURRENT_COLOR == - CSS_BORDER_COLOR_CURRENT_COLOR); + assert((uint16_t)CSS_BACKGROUND_COLOR_INHERIT == + (uint16_t)CSS_BORDER_COLOR_INHERIT); + assert((uint16_t)CSS_BACKGROUND_COLOR_COLOR == + (uint16_t)CSS_BORDER_COLOR_COLOR); + assert((uint16_t)CSS_BACKGROUND_COLOR_CURRENT_COLOR == + (uint16_t)CSS_BORDER_COLOR_CURRENT_COLOR); if (isInherit(opv) == false) { switch (getValue(opv)) { -- cgit v1.2.3