summaryrefslogtreecommitdiffstats
path: root/ext/tk
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-02 18:05:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-02 18:05:02 +0000
commitbb4dcac3c3a9efcd7c8004da5a582a87bf335b30 (patch)
treeb83875aaf9f38c8c8df880308ea00338dae17c64 /ext/tk
parent15f7bed27f35499a1c04843749cfb0356dd59371 (diff)
downloadruby-bb4dcac3c3a9efcd7c8004da5a582a87bf335b30.tar.gz
ruby-bb4dcac3c3a9efcd7c8004da5a582a87bf335b30.tar.xz
ruby-bb4dcac3c3a9efcd7c8004da5a582a87bf335b30.zip
* numeric.c (flo_to_s): get rid of buffer overflow.
* io.c (appendline): clearerr(3) before raising exception, since exception may be captured by rescue. [ruby-talk:77794] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/lib/tk.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index a2d2bf898..78a869204 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -1839,10 +1839,17 @@ class TkVariable
string(value).to_s
end
+<<<<<<< tk.rb
+ def to_symbol
+ value.intern
+ end
+
+=======
def to_sym
value.intern
end
+>>>>>>> 1.73
def inspect
format "#<TkVariable: %s>", @id
end
@@ -1853,8 +1860,13 @@ class TkVariable
self.equal?(other)
when String
self.to_s == other
+<<<<<<< tk.rb
+ when Symbol
+ self.to_symbol == other
+=======
when Symbol
self.to_sym == other
+>>>>>>> 1.73
when Integer
self.to_i == other
when Float