summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-24 08:44:37 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-24 08:44:37 +0000
commit43ce4455f710d31fbc6bfce145ffbac7c5640f48 (patch)
treeab65d224518a2eb86324c1b1e0100d2afa19abef /src/select
parent71d78523776db03819e9b6a6b3e44851895ad76a (diff)
downloadlibcss-43ce4455f710d31fbc6bfce145ffbac7c5640f48.tar.gz
libcss-43ce4455f710d31fbc6bfce145ffbac7c5640f48.tar.bz2
Fix cascade of counter-{increment,reset} on 64bit platforms
svn path=/trunk/libcss/; revision=11476
Diffstat (limited to 'src/select')
-rw-r--r--src/select/properties/helpers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/select/properties/helpers.c b/src/select/properties/helpers.c
index 7bb60ef..31ef2a7 100644
--- a/src/select/properties/helpers.c
+++ b/src/select/properties/helpers.c
@@ -403,10 +403,10 @@ css_error css__cascade_counter_increment_reset(uint32_t opv, css_style *style,
css_fixed val = 0;
css_stylesheet_string_get(style->sheet, *((css_code_t *) style->bytecode), &name);
- advance_bytecode(style, sizeof(name));
+ advance_bytecode(style, sizeof(css_code_t));
val = *((css_fixed *) style->bytecode);
- advance_bytecode(style, sizeof(val));
+ advance_bytecode(style, sizeof(css_code_t));
temp = state->computed->alloc(counters,
(n_counters + 1) *
@@ -428,7 +428,7 @@ css_error css__cascade_counter_increment_reset(uint32_t opv, css_style *style,
n_counters++;
v = *((uint32_t *) style->bytecode);
- advance_bytecode(style, sizeof(v));
+ advance_bytecode(style, sizeof(css_code_t));
}
}
break;