diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-05 22:09:11 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-05 22:09:11 +0000 |
commit | d12ddbec488a7b3ca5f79dcc8de17de18b82882f (patch) | |
tree | a352e59f91863da916c1a1fbf2ec9011ca8fa4d4 /src/stylesheet.c | |
parent | 7049f972404064683b156346f4267d1b5a676358 (diff) | |
download | libcss-d12ddbec488a7b3ca5f79dcc8de17de18b82882f.tar.gz libcss-d12ddbec488a7b3ca5f79dcc8de17de18b82882f.tar.bz2 |
Fix RISC OS build
svn path=/trunk/libcss/; revision=10247
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index b10686f..52f2eed 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -586,18 +586,18 @@ css_error css_stylesheet_style_destroy(css_stylesheet *sheet, css_style *style, bool suppress_bytecode_cleanup) { uint32_t alloclen, bucket; - uint8_t *bptr, *eptr; + void *bptr, *eptr; if (sheet == NULL || style == NULL) return CSS_BADPARM; if (suppress_bytecode_cleanup == false) { bptr = style->bytecode; - eptr = bptr + style->length; + eptr = (uint8_t *) bptr + style->length; while (bptr != eptr) { uint32_t opcode = getOpcode(*((uint32_t*)bptr)); uint32_t skip = prop_dispatch[opcode].destroy(bptr); - bptr += skip; + bptr = (uint8_t *) bptr + skip; } } |