summaryrefslogtreecommitdiffstats
path: root/ext/tk
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-29 19:56:28 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-29 19:56:28 +0000
commitacc41d88da6707189a4881b4fabb3e589cc20ae0 (patch)
treee4341f83f2803b2270210ad79fc833a7ce4fe2df /ext/tk
parente3ce5fbbb67b19136e1b7f35484e78d2a7dcf8d1 (diff)
downloadruby-acc41d88da6707189a4881b4fabb3e589cc20ae0.tar.gz
ruby-acc41d88da6707189a4881b4fabb3e589cc20ae0.tar.xz
ruby-acc41d88da6707189a4881b4fabb3e589cc20ae0.zip
* ext/tk/sample/tktextio.rb: 'hist_size' option causes error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/sample/tktextio.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/sample/tktextio.rb b/ext/tk/sample/tktextio.rb
index 0b78f45b1..4573bcebd 100644
--- a/ext/tk/sample/tktextio.rb
+++ b/ext/tk/sample/tktextio.rb
@@ -108,7 +108,7 @@ class TkTextIO < TkText
@lineno = 0
@line_offset = 0
- @hist_max = opts['hist_size']
+ @hist_max = opts['hist_size'].to_i
@hist_index = 0
@history = Array.new(@hist_max)
@history[0] = ''