summaryrefslogtreecommitdiff
path: root/src/select/properties/helpers.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-04-14 11:15:28 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-04-14 11:15:28 +0000
commit36c41ac21c4f8da88a9e530bb3404db69dcf5b04 (patch)
tree413c922416316736b2fd3541937419f5b4cee330 /src/select/properties/helpers.c
parent89ef7a8acf13143ac0283aa1cfa5ea504b92324b (diff)
downloadlibcss-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/properties/helpers.c')
-rw-r--r--src/select/properties/helpers.c12
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)) {