Skip to content

Commit eb6bae3

Browse files
author
Cléry Plassat
committed
replaced Fixnum with Integer
1 parent 2646c0d commit eb6bae3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/dbus/marshall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def struct
296296
def append(type, val)
297297
raise TypeException, "Cannot send nil" if val.nil?
298298

299-
type = type.chr if type.is_a?(Fixnum)
299+
type = type.chr if type.is_a?(Integer)
300300
type = Type::Parser.new(type).parse[0] if type.is_a?(String)
301301
case type.sigtype
302302
when Type::BYTE

lib/dbus/message.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def reply_to(m)
126126

127127
# Add a parameter _val_ of type _type_ to the message.
128128
def add_param(type, val)
129-
type = type.chr if type.is_a?(Fixnum)
129+
type = type.chr if type.is_a?(Integer)
130130
@signature += type.to_s
131131
@params << [type, val]
132132
end

0 commit comments

Comments
 (0)