summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-09-11 13:45:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 11:16:09 +0900
commitaf5826a25e24ba7179038f99362aa918d48bd8be (patch)
treebff0ebe4af150d94e965d84c54301b203c6c3d31 /load.c
parent926749516e2f9ee23c2eb6295b9759d06509b8e4 (diff)
Replace RB_TYPE_P macro to FIXNUM_P and RB_INTEGER_TYPE_P macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4816
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/load.c b/load.c
index eaa2a59bd6..5fb805d7a3 100644
--- a/load.c
+++ b/load.c
@@ -208,7 +208,7 @@ features_index_add_single(const char* str, size_t len, VALUE offset, bool rb)
NIL_P(this_feature_index = (VALUE)data)) {
st_insert(features_index, short_feature_key, (st_data_t)offset);
}
- else if (RB_TYPE_P(this_feature_index, T_FIXNUM)) {
+ else if (FIXNUM_P(this_feature_index)) {
VALUE loaded_features = get_loaded_features();
VALUE this_feature_path = RARRAY_AREF(loaded_features, FIX2LONG(this_feature_index));
VALUE feature_indexes[2];