Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using RB_BIGNUM_TYPE_P macro #4805

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

S-H-GAMELINKS
Copy link
Contributor

RB_BIGNUM_TYPE_P macro is defined and used in bignum.c and math.c.
But, some code used RB_TYPE_P to check bignum type(like RB_TYPE_P(e, T_BIGNUM) code).

I think it better to these code using RB_BIGNUM_TYPE_P macro instead of RB_TYPE_P macro.

@nobu nobu merged commit 032534d into ruby:master Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants