diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-10 17:46:32 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-10 17:47:12 +0900 |
commit | 4eb23c9ddae2d2fee38b7363f688fed105a6b0a6 (patch) | |
tree | c9642c9db7f60786ce89e1ad605cd55cc83b0f24 /io_buffer.c | |
parent | 83bdc2f00c4565a091d88399e5a315a96f6afed6 (diff) |
Commit miss [ci skip]
Diffstat (limited to 'io_buffer.c')
-rw-r--r-- | io_buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_buffer.c b/io_buffer.c index 327a109177..af05388036 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -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, " "); } } |