summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 25368c1edb..9e1fd7ce86 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4602,7 +4602,7 @@ rb_w32_write(int fd, const void *buf, size_t size)
ret += written;
if (written == len) {
- (const char *)buf += len;
+ buf = (const char *)buf + len;
if (size > 0)
goto retry;
}