summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index 0d935a1eb5..c29ca23b22 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -855,7 +855,7 @@ ruby__sfvwrite(fp, uio)
{
struct __siov *iov;
VALUE result = (VALUE)fp->_bf._base;
- char *buf = fp->_p;
+ char *buf = (char*)fp->_p;
size_t len, n;
int blen = buf - RSTRING(result)->ptr, bsiz = fp->_w;