Skip to content

Commit

Permalink
Use straight equality instead of rb_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
yosiat committed Jun 1, 2019
1 parent 410d146 commit a2afe56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/panko_serializer/serialization_descriptor/attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Attribute attribute_read(VALUE attribute) {
}

void attribute_try_invalidate(Attribute attribute, VALUE new_record_class) {
if (rb_equal(attribute->record_class, new_record_class) == Qfalse) {
if (attribute->record_class != new_record_class) {
attribute->type = Qnil;
attribute->record_class = new_record_class;

Expand Down

0 comments on commit a2afe56

Please sign in to comment.