Skip to content

Commit

Permalink
Merge pull request #1065 from larskanis/autorelease-truthy
Browse files Browse the repository at this point in the history
Use RB_TEST for Pointer.autorelease=
  • Loading branch information
larskanis committed Nov 19, 2023
2 parents 5138fe0 + 57e3a09 commit a898d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ffi_c/Pointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ ptr_autorelease(VALUE self, VALUE autorelease)

rb_check_frozen(self);
TypedData_Get_Struct(self, Pointer, &rbffi_pointer_data_type, ptr);
ptr->autorelease = autorelease == Qtrue;
ptr->autorelease = RB_TEST(autorelease);

return autorelease;
}
Expand Down

0 comments on commit a898d7c

Please sign in to comment.