Fixing cppcheck warning about comma in return statement (libecmaobjects/ecma-helpers-value.c).

This commit is contained in:
Ruben Ayrapetyan
2014-08-11 22:17:35 +04:00
parent 1b84ca8412
commit 839ad7e4b4
+6 -2
View File
@@ -98,11 +98,13 @@ ecma_is_value_true (ecma_value_t value) /**< ecma-value */
ecma_value_t ecma_value_t
ecma_make_simple_value (ecma_simple_value_t value) /**< simple value */ ecma_make_simple_value (ecma_simple_value_t value) /**< simple value */
{ {
return (ecma_value_t) ecma_value_t ret_value = (ecma_value_t)
{ {
.value_type = ECMA_TYPE_SIMPLE, .value_type = ECMA_TYPE_SIMPLE,
.value = value .value = value
}; };
return ret_value;
} /* ecma_make_simple_value */ } /* ecma_make_simple_value */
/** /**
@@ -299,12 +301,14 @@ ecma_make_completion_value (ecma_completion_type_t type, /**< type */
ecma_value_t value, /**< value */ ecma_value_t value, /**< value */
uint8_t target) /**< target */ uint8_t target) /**< target */
{ {
return (ecma_completion_value_t) ecma_completion_value_t ret_value = (ecma_completion_value_t)
{ {
.type = type, .type = type,
.value = value, .value = value,
.target = target .target = target
}; };
return ret_value;
} /* ecma_make_completion_value */ } /* ecma_make_completion_value */
/** /**