diff --git a/jerry-core/parser/js/js-lexer.c b/jerry-core/parser/js/js-lexer.c index a806ec7c3..1315214f6 100644 --- a/jerry-core/parser/js/js-lexer.c +++ b/jerry-core/parser/js/js-lexer.c @@ -2088,7 +2088,7 @@ lexer_decode_unicode_sequence (const uint8_t *source_p) /**< source pointer */ */ int lexer_same_identifiers (lexer_lit_location_t *left, /**< left identifier */ - lexer_lit_location_t *right) /**< right identifier */ + const lexer_lit_location_t *right) /**< right identifier */ { const uint8_t *left_p; const uint8_t *right_p; diff --git a/jerry-core/parser/js/js-parser-internal.h b/jerry-core/parser/js/js-parser-internal.h index 1ebfd170e..57c971fa5 100644 --- a/jerry-core/parser/js/js-parser-internal.h +++ b/jerry-core/parser/js/js-parser-internal.h @@ -355,7 +355,7 @@ void lexer_construct_literal_object (parser_context_t *, lexer_lit_location_t *, int lexer_construct_number_object (parser_context_t *, int, int); void lexer_construct_function_object (parser_context_t *, uint32_t); void lexer_construct_regexp_object (parser_context_t *, int); -int lexer_same_identifiers (lexer_lit_location_t *, lexer_lit_location_t *); +int lexer_same_identifiers (lexer_lit_location_t *, const lexer_lit_location_t *); /* Parser functions. */