Add missing parentheses for bit operations where type cast is used.
Fix for #853. These modifications are required by gcc 4.9 or above. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
committed by
László Langó
parent
02b001e479
commit
cd6ff690d0
@@ -1767,7 +1767,7 @@ lexer_construct_regexp_object (parser_context_t *context_p, /**< context */
|
|||||||
parser_raise_error (context_p, PARSER_ERR_DUPLICATED_REGEXP_FLAG);
|
parser_raise_error (context_p, PARSER_ERR_DUPLICATED_REGEXP_FLAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
current_flags |= (uint16_t) flag;
|
current_flags = (uint16_t) (current_flags | flag);
|
||||||
source_p++;
|
source_p++;
|
||||||
column++;
|
column++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ parser_encode_literal (uint8_t *dst_p, /**< destination buffer */
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*dst_p++ = (uint8_t) (literal_index >> 8) | CBC_HIGHEST_BIT_MASK;
|
*dst_p++ = (uint8_t) ((literal_index >> 8) | CBC_HIGHEST_BIT_MASK);
|
||||||
*dst_p++ = (uint8_t) (literal_index & CBC_MAXIMUM_BYTE_VALUE);
|
*dst_p++ = (uint8_t) (literal_index & CBC_MAXIMUM_BYTE_VALUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1358,7 +1358,7 @@ parser_post_processing (parser_context_t *context_p) /**< context */
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
JERRY_ASSERT (literal_index <= CBC_MAXIMUM_FULL_VALUE);
|
JERRY_ASSERT (literal_index <= CBC_MAXIMUM_FULL_VALUE);
|
||||||
*first_byte = (uint8_t) (literal_p->prop.index >> 8) | CBC_HIGHEST_BIT_MASK;
|
*first_byte = (uint8_t) ((literal_p->prop.index >> 8) | CBC_HIGHEST_BIT_MASK);
|
||||||
page_p->bytes[offset] = (uint8_t) (literal_p->prop.index & 0xff);
|
page_p->bytes[offset] = (uint8_t) (literal_p->prop.index & 0xff);
|
||||||
length++;
|
length++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user