From 36c41ac21c4f8da88a9e530bb3404db69dcf5b04 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 14 Apr 2012 11:15:28 +0000 Subject: correctly apply enum casts to avoid warnings about casting between disimmilar enumerations. svn path=/trunk/libcss/; revision=13868 --- src/select/properties/helpers.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/select/properties') diff --git a/src/select/properties/helpers.c b/src/select/properties/helpers.c index 125f41e..28ecdcc 100644 --- a/src/select/properties/helpers.c +++ b/src/select/properties/helpers.c @@ -52,12 +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((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); + assert(CSS_BACKGROUND_COLOR_INHERIT == + (enum css_background_color_e)CSS_BORDER_COLOR_INHERIT); + assert(CSS_BACKGROUND_COLOR_COLOR == + (enum css_background_color_e)CSS_BORDER_COLOR_COLOR); + assert(CSS_BACKGROUND_COLOR_CURRENT_COLOR == + (enum css_background_color_e)CSS_BORDER_COLOR_CURRENT_COLOR); if (isInherit(opv) == false) { switch (getValue(opv)) { -- cgit v1.2.3