diff options
-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, " "); } } |