diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-04-14 11:15:28 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-04-14 11:15:28 +0000 |
commit | 36c41ac21c4f8da88a9e530bb3404db69dcf5b04 (patch) | |
tree | 413c922416316736b2fd3541937419f5b4cee330 /src/select | |
parent | 89ef7a8acf13143ac0283aa1cfa5ea504b92324b (diff) | |
download | libcss-36c41ac21c4f8da88a9e530bb3404db69dcf5b04.tar.gz libcss-36c41ac21c4f8da88a9e530bb3404db69dcf5b04.tar.bz2 |
correctly apply enum casts to avoid warnings about casting between
disimmilar enumerations.
svn path=/trunk/libcss/; revision=13868
Diffstat (limited to 'src/select')
-rw-r--r-- | src/select/properties/helpers.c | 12 |
1 files changed, 6 insertions, 6 deletions
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)) { |