diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-10 05:43:14 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-10 05:43:14 +0000 |
| commit | e01999392c6700f85e3cb6f5fe71176199b04d09 (patch) | |
| tree | 74d9b6baff5943a68e4339f1f5d7f1a668d8e421 /string.c | |
| parent | 824b38d8b71a7959e716c42557195d18cc6b5b90 (diff) | |
| download | ruby-e01999392c6700f85e3cb6f5fe71176199b04d09.tar.gz ruby-e01999392c6700f85e3cb6f5fe71176199b04d09.tar.xz ruby-e01999392c6700f85e3cb6f5fe71176199b04d09.zip | |
* array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
missing/crypt.c, missing/vsnprintf.c, : suppress warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4872,7 +4872,7 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag) } } else { - int clen, tlen, max = RSTRING_LEN(str) * 1.2; + int clen, tlen, max = (int)(RSTRING_LEN(str) * 1.2); int offset; char *buf = ALLOC_N(char, max), *t = buf; |
