diff --git a/lib/btc_wire_proto.rb b/lib/btc_wire_proto.rb index 8474063..4bd92a1 100644 --- a/lib/btc_wire_proto.rb +++ b/lib/btc_wire_proto.rb @@ -132,7 +132,7 @@ module BtcWireProto # Variable-length integer. This is slightly scary. # @author Nick Thomas class VarInt < BinData::BasePrimitive - register_self + register_self if BinData::VERSION < "1.3.2" def value_to_binary_string(val) val = val.to_i