File: 0002-Use-Integer-instead-of-Fixnum.patch

package info (click to toggle)
ruby-eim-xml 0.0.4-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 304 kB
  • sloc: ruby: 2,002; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Youhei SASAKI <uwabami@gfd-dennou.org>
Date: Tue, 25 Feb 2020 14:45:42 +0900
Subject: Use Integer instead of Fixnum

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 lib/eim_xml.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eim_xml.rb b/lib/eim_xml.rb
index 4b0f0bc..f2cdab7 100644
--- a/lib/eim_xml.rb
+++ b/lib/eim_xml.rb
@@ -135,7 +135,7 @@ module EimXML
 		alias []= add_attribute
 
 		def [](key)
-			if key.is_a?(Fixnum)
+			if key.is_a?(Integer)
 				@contents[key]
 			else
 				@attributes[key.to_sym]