forked from enlightenment/efl
eina: allow EINA_VALUE_EMPTY for Eina_Future as Eina_Value.
This commit is contained in:
parent
fa8aa7c9c8
commit
2b489d5627
|
@ -644,7 +644,8 @@ _future_proxy(void *data, const Eina_Value v,
|
||||||
{
|
{
|
||||||
Eina_Value copy = EINA_VALUE_EMPTY;
|
Eina_Value copy = EINA_VALUE_EMPTY;
|
||||||
|
|
||||||
if (eina_value_type_get(&v) == EINA_VALUE_TYPE_ERROR) return v;
|
if (memcmp(©, &v, sizeof (Eina_Value)) &&
|
||||||
|
eina_value_type_get(&v) == EINA_VALUE_TYPE_ERROR) return v;
|
||||||
//We're in a safe context (from mainloop), so we can avoid scheduling a new dispatch
|
//We're in a safe context (from mainloop), so we can avoid scheduling a new dispatch
|
||||||
if (!v.type || !memcmp(&v, ©, sizeof (Eina_Value))) copy = v;
|
if (!v.type || !memcmp(&v, ©, sizeof (Eina_Value))) copy = v;
|
||||||
else if (!eina_value_copy(&v, ©))
|
else if (!eina_value_copy(&v, ©))
|
||||||
|
|
Loading…
Reference in New Issue