Skip to content

Commit 31090dd

Browse files
committed
Import warning fixes
1 parent 4049724 commit 31090dd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ext/lexbor/lexbor/css/syntax/state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ lxb_css_syntax_state_consume_unicode_range(lxb_css_syntax_tokenizer_t *tkz,
12841284
while (data < end && *data == 0x3F && count > 0);
12851285

12861286
range_start = cp << (4 * question);
1287-
range_end = range_start | (1 << (4 * question)) - 1;
1287+
range_end = range_start | ((1 << (4 * question)) - 1);
12881288

12891289
lxb_css_syntax_token_unicode_range(token)->start = range_start;
12901290
lxb_css_syntax_token_unicode_range(token)->end = range_end;

ext/lexbor/lexbor/css/syntax/token.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ static lxb_status_t
3737
lxb_css_syntax_token_str_cb(const lxb_char_t *data, size_t len, void *ctx);
3838

3939
static int8_t
40-
lxb_css_syntax_token_encode_utf_8(lxb_char_t *data, const lxb_char_t *end,
41-
lxb_codepoint_t cp);
40+
lxb_css_syntax_token_encode_utf_8(lxb_char_t *data, lxb_codepoint_t cp);
4241

4342

4443
lxb_css_syntax_token_t *
@@ -263,7 +262,7 @@ lxb_css_syntax_token_serialize(const lxb_css_syntax_token_t *token,
263262

264263
switch (token->type) {
265264
case LXB_CSS_SYNTAX_TOKEN_DELIM:
266-
len = lxb_css_syntax_token_encode_utf_8(buf, buf + 5,
265+
len = lxb_css_syntax_token_encode_utf_8(buf,
267266
token->types.delim.character);
268267
buf[len] = 0x00;
269268

@@ -604,8 +603,7 @@ lxb_css_syntax_token_error(lxb_css_parser_t *parser,
604603
}
605604

606605
static int8_t
607-
lxb_css_syntax_token_encode_utf_8(lxb_char_t *data, const lxb_char_t *end,
608-
lxb_codepoint_t cp)
606+
lxb_css_syntax_token_encode_utf_8(lxb_char_t *data, lxb_codepoint_t cp)
609607
{
610608
if (cp < 0x80) {
611609
/* 0xxxxxxx */

0 commit comments

Comments
 (0)