Skip to content

Commit

Permalink
fix(util): incorrect object type checking in Object_Operate()
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Oct 7, 2019
1 parent 3b17cd6 commit a326e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ LCUI_Object Object_Duplicate(LCUI_Object src)

int Object_Compare(LCUI_Object a, LCUI_Object b)
{
if (a->type == a->type && a->type->compare) {
if (a->type == b->type && a->type->compare) {
return a->type->compare(a, b);
}
return a->value.string - b->value.string;
Expand Down

0 comments on commit a326e8c

Please sign in to comment.