File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
ext/lexbor/lexbor/css/syntax Expand file tree Collapse file tree 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,
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 ;
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ static lxb_status_t
3737lxb_css_syntax_token_str_cb (const lxb_char_t * data , size_t len , void * ctx );
3838
3939static 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
4443lxb_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
606605static 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 */
You can’t perform that action at this time.
0 commit comments