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

Commit miss [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-11-10 17:46:32 +09:00
parent 83bdc2f00c
commit 4eb23c9dda
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -376,7 +376,7 @@ io_buffer_validate(struct rb_io_buffer *data)
// Only slices incur this overhead, unfortunately... better safe than sorry!
return io_buffer_validate_slice(data->source, data->base, data->size);
}
else {
else {
return 1;
}
}
@ -437,13 +437,13 @@ io_buffer_hexdump(VALUE string, size_t width, char *base, size_t size)
if (value < 127 && isprint(value)) {
text[i] = (char)value;
}
else {
else {
text[i] = '.';
}
rb_str_catf(string, " %02x", value);
}
else {
else {
rb_str_cat2(string, " ");
}
}