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

Local functions should be static

This commit is contained in:
Nobuyoshi Nakada 2022-07-05 09:30:05 +09:00
parent f64bb67d75
commit a070d4cceb
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -313,8 +313,9 @@ reachable_object_i(VALUE ref, void *data)
dc->cur_obj_references++; dc->cur_obj_references++;
} }
bool static bool
dump_string_ascii_only(const char *str, long size) { dump_string_ascii_only(const char *str, long size)
{
for (long i = 0; i < size; i++) { for (long i = 0; i < size; i++) {
if (str[i] & 0x80) { if (str[i] & 0x80) {
return false; return false;