diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-01-19 23:12:37 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-01-19 23:12:37 +0000 |
commit | 6a50bef84ae6a0a67e03ac1356f8d85d15fe09d6 (patch) | |
tree | 01f78f04b22517899f603787f6005f70b359271e /src/select/select.h | |
parent | 63c21aca7c77b1d37cb64ad2b1fa76d6b0b92f48 (diff) | |
download | libcss-6a50bef84ae6a0a67e03ac1356f8d85d15fe09d6.tar.gz libcss-6a50bef84ae6a0a67e03ac1356f8d85d15fe09d6.tar.bz2 |
Merge parser autogeneration and string handling refactor branch r=jmb,kinnison,vince
svn path=/trunk/libcss/; revision=11408
Diffstat (limited to 'src/select/select.h')
-rw-r--r-- | src/select/select.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/select.h b/src/select/select.h index e66743e..a5a4b64 100644 --- a/src/select/select.h +++ b/src/select/select.h @@ -60,8 +60,8 @@ typedef struct css_select_state { static inline void advance_bytecode(css_style *style, uint32_t n_bytes) { - style->length -= n_bytes; - style->bytecode = ((uint8_t *) style->bytecode) + n_bytes; + style->used -= (n_bytes / sizeof(css_code_t)); + style->bytecode = style->bytecode + (n_bytes / sizeof(css_code_t)); } bool outranks_existing(uint16_t op, bool important, css_select_state *state, |