Fix character code values for "<LF>" and "<CR>" characters in ecma-char helpers.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-06-29 17:08:19 +03:00
committed by Evgeny Gavrin
parent 3d31bfec92
commit 9e3f123cd5
2 changed files with 19 additions and 2 deletions
+2 -2
View File
@@ -32,7 +32,7 @@
bool
ecma_char_is_new_line (ecma_char_t c) /**< character value */
{
return (c == '\x0D');
return (c == '\x0A');
} /* ecma_char_is_new_line */
/**
@@ -44,7 +44,7 @@ ecma_char_is_new_line (ecma_char_t c) /**< character value */
bool
ecma_char_is_carriage_return (ecma_char_t c) /**< character value */
{
return (c == '\x0A');
return (c == '\x0D');
} /* ecma_char_is_carriage_return */
/**