Suppress sign-conversion warning [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2025-03-18 16:22:49 +09:00
parent c9d433947e
commit bb7f1619d2
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -79,7 +79,7 @@ RBIMPL_ATTR_CONST()
static inline bool
RB_ENC_CODERANGE_CLEAN_P(enum ruby_coderange_type cr)
{
return rb_enc_coderange_clean_p(cr);
return rb_enc_coderange_clean_p(RBIMPL_CAST((int)cr));
}
RBIMPL_ATTR_PURE_UNLESS_DEBUG()