diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-12 09:28:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-12 09:28:28 +0000 |
commit | f8a90f1c0cee7c67e436b0b55b664ac72a1c2aa4 (patch) | |
tree | cfe3c4c073bae49948199f3e2387d13f62e5240e /ext/tk | |
parent | e85f3debc4ef72fbe812b90ae3c74237814f3ef2 (diff) |
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): need to handle new
character literal (1 char string).
* lib/mkmf.rb: shut up some warnings from tk's extconf.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r-- | ext/tk/tkutil/tkutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c index 1c57b18f2a..0b2597ec1a 100644 --- a/ext/tk/tkutil/tkutil.c +++ b/ext/tk/tkutil/tkutil.c @@ -1359,8 +1359,8 @@ cbsubst_table_setup(self, key_inf, proc_inf) for(idx = 0; idx < len; idx++) { inf = RARRAY_PTR(key_inf)[idx]; if (TYPE(inf) != T_ARRAY) continue; - *(key + real_len) = (char)NUM2INT(RARRAY_PTR(inf)[0]); - *(type + real_len) = (char)NUM2INT(RARRAY_PTR(inf)[1]); + *(key + real_len) = NUM2CHR(RARRAY_PTR(inf)[0]); + *(type + real_len) = NUM2CHR(RARRAY_PTR(inf)[1]); *(ivar + real_len) = rb_intern( |