aboutsummaryrefslogtreecommitdiff
path: root/jerry-core/ecma/builtin-objects/ecma-builtin-date.c
diff options
context:
space:
mode:
authorRobert Sipka <rsipka.uszeged@partner.samsung.com>2017-02-22 10:34:44 +0100
committerGitHub <noreply@github.com>2017-02-22 10:34:44 +0100
commit39dc4a627304c8dcf61b32e994bc7359c90b0261 (patch)
tree56ce429643555167deb8015b59550de04b4bf22e /jerry-core/ecma/builtin-objects/ecma-builtin-date.c
parent5ef305dfeeac947a91516e626854d9dac090447a (diff)
Remove shadowed declarations, undefined identifiers, and specify argument types where it is required. (#1601)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
Diffstat (limited to 'jerry-core/ecma/builtin-objects/ecma-builtin-date.c')
-rw-r--r--jerry-core/ecma/builtin-objects/ecma-builtin-date.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-date.c b/jerry-core/ecma/builtin-objects/ecma-builtin-date.c
index 0b34fe2f..540d501d 100644
--- a/jerry-core/ecma/builtin-objects/ecma-builtin-date.c
+++ b/jerry-core/ecma/builtin-objects/ecma-builtin-date.c
@@ -319,11 +319,11 @@ ecma_builtin_date_parse (ecma_value_t this_arg, /**< this argument */
else if (date_str_curr_p < date_str_end_p
&& (*date_str_curr_p == '+' || *date_str_curr_p == '-'))
{
- ecma_length_t remaining_length;
- remaining_length = lit_utf8_string_length (date_str_curr_p,
- (lit_utf8_size_t) (date_str_end_p - date_str_curr_p)) - 1;
+ ecma_length_t remaining_date_length;
+ remaining_date_length = lit_utf8_string_length (date_str_curr_p,
+ (lit_utf8_size_t) (date_str_end_p - date_str_curr_p)) - 1;
- if (remaining_length == 5)
+ if (remaining_date_length == 5)
{
bool is_negative = false;