aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/lib/tk/variable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb
index f6ebe551fb..7290658bf8 100644
--- a/ext/tk/lib/tk/variable.rb
+++ b/ext/tk/lib/tk/variable.rb
@@ -1218,7 +1218,7 @@ end
end
end
def *(other)
- num_or_str(self._value) * other.to_i
+ num_or_str(self._value) * other
#begin
# number(self._value) * other
#rescue
@@ -1229,7 +1229,7 @@ end
number(self._value) / other
end
def %(other)
- num_or_str(self._value) % other.to_i
+ num_or_str(self._value) % other
#begin
# number(self._value) % other
#rescue