Avoid a deprecation warning with BinData
This commit is contained in:
@@ -132,7 +132,7 @@ module BtcWireProto
|
||||
# Variable-length integer. This is slightly scary.
|
||||
# @author Nick Thomas <nick@lupine.me.uk>
|
||||
class VarInt < BinData::BasePrimitive
|
||||
register_self
|
||||
register_self if BinData::VERSION < "1.3.2"
|
||||
|
||||
def value_to_binary_string(val)
|
||||
val = val.to_i
|
||||
|
Reference in New Issue
Block a user