1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: fix argument type

* parse.y (is_global_name_punct): fix argument type, to get rid of
  implicit promotion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-14 08:24:55 +00:00
parent f83c42d970
commit e6589b2b55

View file

@ -6179,7 +6179,7 @@ const unsigned int ruby_global_name_punct_bits[] = {
#endif
static inline int
is_global_name_punct(const char c)
is_global_name_punct(const int c)
{
if (c <= 0x20 || 0x7e < c) return 0;
return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;