diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2024-05-26 20:03:30 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2024-05-26 20:03:30 +0100 |
commit | cce3fb380c452abe44b857a881a11a6816a0485d (patch) | |
tree | 806d08efa3eaba4d97fafdf5e562bf0402cc7112 | |
parent | 7265132f99989cf231415917e7574b78eccfbeb6 (diff) | |
download | libcss-cce3fb380c452abe44b857a881a11a6816a0485d.tar.gz libcss-cce3fb380c452abe44b857a881a11a6816a0485d.tar.bz2 |
calc: Try and quieten a warning about alignment
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r-- | src/select/calc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/select/calc.c b/src/select/calc.c index 34e1cbc..7e7fd1e 100644 --- a/src/select/calc.c +++ b/src/select/calc.c @@ -199,7 +199,8 @@ css_error css_calculator_calculate(css_calculator *calc, css_unit *unit_out, css_fixed *value_out) { css_error ret = CSS_OK; - css_code_t *codeptr = (css_code_t *)lwc_string_data(expr); + /* Alignment note: lwc string data is always very well aligned */ + css_code_t *codeptr = (css_code_t *)(void *)lwc_string_data(expr); /* Reset the stack before we begin, just in case */ calc->stack_ptr = 0; |