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:
parent
f83c42d970
commit
e6589b2b55
2
parse.y
2
parse.y
@ -6179,7 +6179,7 @@ const unsigned int ruby_global_name_punct_bits[] = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
is_global_name_punct(const char c)
|
is_global_name_punct(const int c)
|
||||||
{
|
{
|
||||||
if (c <= 0x20 || 0x7e < c) return 0;
|
if (c <= 0x20 || 0x7e < c) return 0;
|
||||||
return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;
|
return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user