summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <[email protected]>2021-09-11 13:45:22 +0900
committerNobuyoshi Nakada <[email protected]>2021-09-12 11:16:09 +0900
commitaf5826a25e24ba7179038f99362aa918d48bd8be ()
treebff0ebe4af150d94e965d84c54301b203c6c3d31 /load.c
parent926749516e2f9ee23c2eb6295b9759d06509b8e4 (diff)
Replace RB_TYPE_P macro to FIXNUM_P and RB_INTEGER_TYPE_P macro
Notes: Merged: https://.com/ruby/ruby/pull/4816
-rw-r--r--load.c2
1 files changed, 1 insertions, 1 deletions
@@ -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)) {
VALUE loaded_features = get_loaded_features();
VALUE this_feature_path = RARRAY_AREF(loaded_features, FIX2LONG(this_feature_index));
VALUE feature_indexes[2];