Unify the condition form within the asserts
This modificiation affects those conditions which check that a value can be represented with a smaller type. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -37,10 +37,10 @@
|
||||
*/
|
||||
#define ECMA_NUMBER_CONVERSION_128BIT_INTEGER_CHECK_PARTS_ARE_32BIT(name) \
|
||||
{ \
|
||||
JERRY_ASSERT (name[0] == (uint32_t) name[0]); \
|
||||
JERRY_ASSERT (name[1] == (uint32_t) name[1]); \
|
||||
JERRY_ASSERT (name[2] == (uint32_t) name[2]); \
|
||||
JERRY_ASSERT (name[3] == (uint32_t) name[3]); \
|
||||
JERRY_ASSERT (name[0] <= UINT32_MAX); \
|
||||
JERRY_ASSERT (name[1] <= UINT32_MAX); \
|
||||
JERRY_ASSERT (name[2] <= UINT32_MAX); \
|
||||
JERRY_ASSERT (name[3] <= UINT32_MAX); \
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,8 +42,7 @@
|
||||
/**
|
||||
* The length should be representable with int32_t.
|
||||
*/
|
||||
JERRY_STATIC_ASSERT ((int32_t) ECMA_STRING_MAX_CONCATENATION_LENGTH ==
|
||||
ECMA_STRING_MAX_CONCATENATION_LENGTH,
|
||||
JERRY_STATIC_ASSERT (ECMA_STRING_MAX_CONCATENATION_LENGTH <= INT32_MAX,
|
||||
ECMA_STRING_MAX_CONCATENATION_LENGTH_should_be_representable_with_int32_t);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user