mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ Check_Type(VALUE v, enum ruby_value_type t)
|
||||||
}
|
}
|
||||||
|
|
||||||
unexpected_type:
|
unexpected_type:
|
||||||
rb_unexpected_type(v, t);
|
rb_unexpected_type(v, RBIMPL_CAST((int)t));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* RBIMPL_VALUE_TYPE_H */
|
#endif /* RBIMPL_VALUE_TYPE_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue