Skip to content

Commit 30e4230

Browse files
authored
Merge pull request #4 from herwinw/integer
Removed remaining references to Fixnum/Bignum
2 parents 8780bd1 + 677fe7a commit 30e4230

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/xmlrpc/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def password=(new_password)
237237
# Each parameter of +args+ must be of one of the following types,
238238
# where Hash, Struct and Array can contain any of these listed _types_:
239239
#
240-
# * Fixnum, Bignum
240+
# * Integer
241241
# * TrueClass, FalseClass, +true+, +false+
242242
# * String, Symbol
243243
# * Float
@@ -255,7 +255,7 @@ def password=(new_password)
255255
#
256256
# The type of the return-value is one of the types shown above.
257257
#
258-
# A Bignum is only allowed when it fits in 32-bit. A XML-RPC
258+
# An Integer is only allowed when it fits in 32-bit. A XML-RPC
259259
# +dateTime.iso8601+ type is always returned as a XMLRPC::DateTime object.
260260
# Struct is never returned, only a Hash, the same for a Symbol, where as a
261261
# String is always returned. XMLRPC::Base64 is returned as a String from

lib/xmlrpc/create.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ def conv2value(param) # :doc:
177177

178178
val = case param
179179
when Integer
180-
# XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit
180+
# XML-RPC's int is 32bit int
181181
if Config::ENABLE_BIGINT
182182
@writer.tag("i4", param.to_s)
183183
else
184184
if param >= -(2**31) and param <= (2**31-1)
185185
@writer.tag("i4", param.to_s)
186186
else
187-
raise "Bignum is too big! Must be signed 32-bit integer!"
187+
raise "Integer is too big! Must be signed 32-bit integer!"
188188
end
189189
end
190190
when TrueClass, FalseClass

0 commit comments

Comments
 (0)