From 4d0ec108afbf565ac7b4c0c92b65da4e6827ae3f Mon Sep 17 00:00:00 2001 From: nagai Date: Mon, 29 Jan 2007 19:56:48 +0000 Subject: * 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 --- ext/tk/sample/tktextio.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/tk/sample/tktextio.rb b/ext/tk/sample/tktextio.rb index 0b78f45b10..4573bcebdf 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] = '' -- cgit v1.2.3