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:
Roland Takacs
2016-02-09 09:58:50 +01:00
committed by László Langó
parent 02b001e479
commit cd6ff690d0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -408,7 +408,7 @@ parser_encode_literal (uint8_t *dst_p, /**< destination buffer */
}
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);
}
}
@@ -1358,7 +1358,7 @@ parser_post_processing (parser_context_t *context_p) /**< context */
else
{
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);
length++;
}