diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-21 06:29:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-21 06:29:35 +0000 |
commit | 6ccce7e3f521c04bd3ef83f6d19e534bb7d266bb (patch) | |
tree | 31bb54feba52082c52663555c1e8a397d52491e9 /sprintf.c | |
parent | 2bd1599caf09fda03bbce9d1fcd71da01b0f044a (diff) | |
download | ruby-6ccce7e3f521c04bd3ef83f6d19e534bb7d266bb.tar.gz |
* missing/vsnprintf.c (struct __sbuf, FILE): use size_t.
* sprintf.c (ruby__sfvwrite): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1043,7 +1043,7 @@ ruby__sfvwrite(register rb_printf_buffer *fp, register struct __suio *uio) VALUE result = (VALUE)fp->_bf._base; char *buf = (char*)fp->_p; size_t len, n; - int blen = buf - RSTRING_PTR(result), bsiz = fp->_w; + size_t blen = buf - RSTRING_PTR(result), bsiz = fp->_w; if (RBASIC(result)->klass) { rb_raise(rb_eRuntimeError, "rb_vsprintf reentered"); |