summaryrefslogtreecommitdiffstats
path: root/ext/tk/tkutil
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-12 09:28:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-12 09:28:28 +0000
commit9eb90af0bc6b9d4fd3298354cab6e6219c9bad49 (patch)
treecfe3c4c073bae49948199f3e2387d13f62e5240e /ext/tk/tkutil
parente3b5f96c5be714cbc877149014afc74f17e7289d (diff)
downloadruby-9eb90af0bc6b9d4fd3298354cab6e6219c9bad49.tar.gz
ruby-9eb90af0bc6b9d4fd3298354cab6e6219c9bad49.tar.xz
ruby-9eb90af0bc6b9d4fd3298354cab6e6219c9bad49.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@11139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/tkutil')
-rw-r--r--ext/tk/tkutil/tkutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c
index 1c57b18f2..0b2597ec1 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(