summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 00:05:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 00:05:35 +0000
commit489e05fcc9008e993cbbbc455b1d9be16974c163 (patch)
tree5fb00841351dbbc9e78fd59e2e8c8ff4dcd61076 /string.c
parentbb9a05528d8de071a1221386c32e108a6be401fc (diff)
* string.c (tr_trans): suppress signedness/unsignedness warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 19472d991f..798e108d42 100644
--- a/string.c
+++ b/string.c
@@ -4976,8 +4976,8 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
rb_encoding *enc, *e1, *e2;
struct tr trsrc, trrepl;
int cflag = 0;
- unsigned int c, c0;
- int last = 0, modify = 0, i, l;
+ unsigned int c, c0, last = 0;
+ int modify = 0, i, l;
char *s, *send;
VALUE hash = 0;
int singlebyte = single_byte_optimizable(str);