jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9e68f0524b00e16b9e1c1f21f57d37b6b919b1ae

commit 9e68f0524b00e16b9e1c1f21f57d37b6b919b1ae
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Tue Dec 15 14:12:21 2015 +0900

    Eina value: Fix clang warnings (use NULL instead of bool)
---
 src/lib/eina/eina_inline_value.x | 2 +-
 src/lib/eina/eina_value.c        | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_inline_value.x b/src/lib/eina/eina_inline_value.x
index a9ceea1..04f8c89 100644
--- a/src/lib/eina/eina_inline_value.x
+++ b/src/lib/eina/eina_inline_value.x
@@ -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))
      {
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index 8b45856..1e0217d 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -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;
 }

-- 


Reply via email to