summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-29 19:56:48 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-29 19:56:48 +0000
commit4d0ec108afbf565ac7b4c0c92b65da4e6827ae3f (patch)
treef701975998a36ec7166444f6bd3a76d6af52a620 /ext
parente43d14725ff8dab7210988c1201779666fb4aa96 (diff)
* ext/tk/sample/tktextio.rb: 'hist_size' option causes error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 0b78f45..4573bce 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] = ''