@@ -544,7 +544,7 @@ lexer_parse_identifier (parser_context_t *context_p, /**< context */
544544 {
545545 /* Fill literal data. */
546546 context_p -> token .lit_location .char_p = ident_start_p ;
547- context_p -> token .lit_location .length = (uint16_t ) length ;
547+ context_p -> token .lit_location .length = (prop_length_t ) length ;
548548 }
549549
550550 context_p -> source_p = source_p ;
@@ -815,7 +815,7 @@ lexer_parse_string (parser_context_t *context_p) /**< context */
815815
816816 /* Fill literal data. */
817817 context_p -> token .lit_location .char_p = string_start_p ;
818- context_p -> token .lit_location .length = (uint16_t ) length ;
818+ context_p -> token .lit_location .length = (prop_length_t ) length ;
819819 context_p -> token .lit_location .type = LEXER_STRING_LITERAL ;
820820 context_p -> token .lit_location .has_escape = has_escape ;
821821
@@ -966,7 +966,7 @@ lexer_parse_number (parser_context_t *context_p) /**< context */
966966 parser_raise_error (context_p , PARSER_ERR_NUMBER_TOO_LONG );
967967 }
968968
969- context_p -> token .lit_location .length = (uint16_t ) length ;
969+ context_p -> token .lit_location .length = (prop_length_t ) length ;
970970 PARSER_PLUS_EQUAL_LC (context_p -> column , length );
971971 context_p -> source_p = source_p ;
972972} /* lexer_parse_number */
@@ -1374,7 +1374,7 @@ lexer_process_char_literal (parser_context_t *context_p, /**< context */
13741374 }
13751375
13761376 literal_p = (lexer_literal_t * ) parser_list_append (context_p , & context_p -> literal_pool );
1377- literal_p -> prop .length = (uint16_t ) length ;
1377+ literal_p -> prop .length = (prop_length_t ) length ;
13781378 literal_p -> type = literal_type ;
13791379 literal_p -> status_flags = has_escape ? 0 : LEXER_FLAG_SOURCE_PTR ;
13801380
@@ -1718,7 +1718,7 @@ lexer_construct_number_object (parser_context_t *context_p, /**< context */
17181718 lexer_literal_t * literal_p ;
17191719 ecma_number_t num ;
17201720 uint32_t literal_index = 0 ;
1721- uint16_t length = context_p -> token .lit_location .length ;
1721+ prop_length_t length = context_p -> token .lit_location .length ;
17221722
17231723 if (context_p -> token .extra_value != LEXER_NUMBER_OCTAL )
17241724 {
@@ -2007,7 +2007,7 @@ lexer_construct_regexp_object (parser_context_t *context_p, /**< context */
20072007 }
20082008
20092009 literal_p = (lexer_literal_t * ) parser_list_append (context_p , & context_p -> literal_pool );
2010- literal_p -> prop .length = (uint16_t ) length ;
2010+ literal_p -> prop .length = (prop_length_t ) length ;
20112011 literal_p -> type = LEXER_UNUSED_LITERAL ;
20122012 literal_p -> status_flags = 0 ;
20132013
0 commit comments