eolian: consider @by_ref marked elements ownable

This commit is contained in:
Daniel Kolesa 2019-09-10 14:10:10 +02:00
parent b880a1c7e8
commit 5cd851ea25
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ _validate_by_ref(Eolian_Type *tp, Eina_Bool by_ref, Eina_Bool move)
if (tp->btype == EOLIAN_TYPE_BUILTIN_FUTURE)
return EINA_TRUE;
/* not marked @move; just validate */
if (!move)
/* not marked @move, or marked @by_ref; just validate */
if (!move || by_ref)
return EINA_TRUE;
/* marked @move, not pointer-like or otherwise ownable, error */