summaryrefslogtreecommitdiff
path: root/src/select/properties
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2012-04-06 23:50:20 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2012-04-06 23:50:20 +0000
commiteaeda64620973d5400bdead1751423bc20e574e8 (patch)
tree244039bc7b6faef92bd0854d5cbb8a5bee7701dd /src/select/properties
parent845aad798bc9e1bae6b394e283514851a38b132a (diff)
downloadlibcss-eaeda64620973d5400bdead1751423bc20e574e8.tar.gz
libcss-eaeda64620973d5400bdead1751423bc20e574e8.tar.bz2
Fix debug build (warnings about comparing different enums).
svn path=/trunk/libcss/; revision=13810
Diffstat (limited to 'src/select/properties')
-rw-r--r--src/select/properties/helpers.c10
1 files changed, 6 insertions, 4 deletions
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)) {