Make value_type.h compatible with -Wconversion

[Feature #20507]

This was missed from the initial commit.

```
../../.././include/ruby/internal/value_type.h:446:27: error: implicit conversion changes signedness: 'enum ruby_value_type' to 'int' [-Werror,-Wsign-conversion]
    rb_unexpected_type(v, t);
    ~~~~~~~~~~~~~~~~~~    ^
```
This commit is contained in:
Jean Boussier 2024-05-28 07:54:37 +02:00
parent ca2d229e6b
commit ceeb9957c3

View File

@ -443,7 +443,7 @@ Check_Type(VALUE v, enum ruby_value_type t)
}
unexpected_type:
rb_unexpected_type(v, t);
rb_unexpected_type(v, RBIMPL_CAST((int)t));
}
#endif /* RBIMPL_VALUE_TYPE_H */