diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-07-27 18:42:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-07-27 18:42:27 +0900 |
commit | f42230ff2210647d480d02a381065359be993015 (patch) | |
tree | b56f825079885aa90cb274bf76a602bafdeec0e8 /io.c | |
parent | 8b9d4b2ce64d496454428292b8d723878906c966 (diff) |
Adjust styles [ci skip]
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1224,7 +1224,8 @@ io_flush_buffer(rb_io_t *fptr) { if (!NIL_P(fptr->write_lock) && rb_mutex_owned_p(fptr->write_lock)) { return (int)io_flush_buffer_async((VALUE)fptr); - } else { + } + else { return (int)rb_mutex_synchronize(fptr->write_lock, io_flush_buffer_async, (VALUE)fptr); } } @@ -1699,7 +1700,8 @@ io_binwrite(VALUE str, const char *ptr, long len, rb_io_t *fptr, int nosync) else { return io_binwrite_string((VALUE)&arg); } - } else { + } + else { if (fptr->wbuf.off) { if (fptr->wbuf.len) MEMMOVE(fptr->wbuf.ptr, fptr->wbuf.ptr+fptr->wbuf.off, char, fptr->wbuf.len); |