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:
parent
ca2d229e6b
commit
ceeb9957c3
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user