mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 09:33:59 +02:00
![]() On some platforms ctype functions are defined as macros accesing tables.
A plain char may be `signed` or `unsigned` per implementations and the
extension result implementation dependent.
gcc warns such case:
```
parser.c: In function 'rstring_cache_fetch':
parser.c:138:33: warning: array subscript has type 'char' [-Wchar-subscripts]
138 | if (RB_UNLIKELY(!isalpha(str[0]))) {
| ~~~^~~
parser.c: In function 'rsymbol_cache_fetch':
parser.c:190:33: warning: array subscript has type 'char' [-Wchar-subscripts]
190 | if (RB_UNLIKELY(!isalpha(str[0]))) {
| ~~~^~~
```
|
||
---|---|---|
.. | ||
fbuffer | ||
generator | ||
lib | ||
parser | ||
depend | ||
extconf.rb | ||
json.gemspec |