Eina value: Fix clang warnings (use NULL instead of bool)

This commit is contained in:
Jean-Philippe Andre 2015-12-15 14:12:21 +09:00
parent ddd783ec88
commit 9e68f0524b
2 changed files with 3 additions and 3 deletions

View File

@ -1704,7 +1704,7 @@ eina_value_optional_type_get(Eina_Value *value)
void *mem = eina_value_memory_get(value);
if (!mem)
return EINA_FALSE;
return NULL;
if(2*sizeof(void*) <= sizeof(Eina_Value_Union))
{

View File

@ -4406,12 +4406,12 @@ eina_value_optional_new(Eina_Value_Type const *subtype,
if (!eina_value_setup(value, EINA_VALUE_TYPE_OPTIONAL))
{
eina_mempool_free(_eina_value_mp, value);
return EINA_FALSE;
return NULL;
}
if (!eina_value_optional_pset(value, subtype, initial_value))
{
eina_mempool_free(_eina_value_mp, value);
return EINA_FALSE;
return NULL;
}
return value;
}