Skip to content

Commit

Permalink
fix: TraitIsImplemented issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopodl committed Dec 3, 2023
1 parent 8c8e72c commit 6cd8488
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion argon/vm/datatype/arobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,10 @@ bool argon::vm::datatype::TraitIsImplemented(const ArObject *object, const TypeI
if (object == nullptr || type == nullptr)
return false;

obj_type = AR_GET_TYPE(object);
if((const TypeInfo *) object == type)
return true;

obj_type = AR_GET_TYPE(object);
if (obj_type == type)
return true;

Expand Down

0 comments on commit 6cd8488

Please sign in to comment.