From bb07151a39a580a51b88fcb7b29d668975523cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Thu, 16 Jun 2016 14:12:30 +0200 Subject: [PATCH] Pack assert-related code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com --- jerry-core/ecma/base/ecma-helpers-string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jerry-core/ecma/base/ecma-helpers-string.c b/jerry-core/ecma/base/ecma-helpers-string.c index 450501f4b..2de43e9a7 100644 --- a/jerry-core/ecma/base/ecma-helpers-string.c +++ b/jerry-core/ecma/base/ecma-helpers-string.c @@ -1259,8 +1259,7 @@ ecma_char_t ecma_string_get_char_at_pos (const ecma_string_t *string_p, /**< ecma-string */ ecma_length_t index) /**< index of character */ { - ecma_length_t string_length = ecma_string_get_length (string_p); - JERRY_ASSERT (index < string_length); + JERRY_ASSERT (index < ecma_string_get_length (string_p)); lit_utf8_size_t buffer_size; bool is_ascii;