summaryrefslogtreecommitdiff
path: root/src/select/select.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/select/select.h')
-rw-r--r--src/select/select.h4
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,