Skip to content

Commit a6d900a

Browse files
author
Dion Mendel
committed
Fixnum is deprecated. Use Integer
1 parent 9a203df commit a6d900a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog.rdoc

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
= BinData Changelog
22

3+
== Version 2.4.9 (xxxx-xx-xx)
4+
5+
* Change example from Fixnum to Integer. Thanks to Tim Chambers.
6+
37
== Version 2.4.8 (2020-07-21)
48

59
* Bug fix array self assignment. Thanks to Spencer McIntyre.

examples/list.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def decode
105105
end
106106

107107
def self.encode(val)
108-
if Fixnum === val
108+
if Integer === val
109109
Term.new(tag: 'a', term: Atom.encode(val))
110110
else
111111
Term.new(tag: 'l', term: List.encode(val))

0 commit comments

Comments
 (0)