File tree 2 files changed +4
-6
lines changed
ext/lexbor/lexbor/css/syntax
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1284,7 +1284,7 @@ lxb_css_syntax_state_consume_unicode_range(lxb_css_syntax_tokenizer_t *tkz,
1284
1284
while (data < end && * data == 0x3F && count > 0 );
1285
1285
1286
1286
range_start = cp << (4 * question );
1287
- range_end = range_start | (1 << (4 * question )) - 1 ;
1287
+ range_end = range_start | (( 1 << (4 * question )) - 1 ) ;
1288
1288
1289
1289
lxb_css_syntax_token_unicode_range (token )-> start = range_start ;
1290
1290
lxb_css_syntax_token_unicode_range (token )-> end = range_end ;
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ static lxb_status_t
37
37
lxb_css_syntax_token_str_cb (const lxb_char_t * data , size_t len , void * ctx );
38
38
39
39
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 );
42
41
43
42
44
43
lxb_css_syntax_token_t *
@@ -263,7 +262,7 @@ lxb_css_syntax_token_serialize(const lxb_css_syntax_token_t *token,
263
262
264
263
switch (token -> type ) {
265
264
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 ,
267
266
token -> types .delim .character );
268
267
buf [len ] = 0x00 ;
269
268
@@ -604,8 +603,7 @@ lxb_css_syntax_token_error(lxb_css_parser_t *parser,
604
603
}
605
604
606
605
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 )
609
607
{
610
608
if (cp < 0x80 ) {
611
609
/* 0xxxxxxx */
You can’t perform that action at this time.
0 commit comments