summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-28 02:33:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-28 02:33:28 +0000
commit989b0a6d1e327900f20fcd9b898393b9edbd0c2e (patch)
tree0e46afe1c792d9adcc4cb8e628cc906f20919cfa /sprintf.c
parentbd3404ced0af1a368e070b6c0fde63290a3e54a8 (diff)
downloadruby-989b0a6d1e327900f20fcd9b898393b9edbd0c2e.tar.gz
* parse.y (f_larglist): allow bv_decl at the end of lambda
argument list. [EXPERIMENTAL] * parse.y (new_bv_gen): allow local variable shadowing, with warning in verbose mode. * ext/socket/socket.c (ruby_connect): break immediately if a socket is non-blocking. [ruby-talk:111654] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;