From fcb0ca0b54a6fb71c696361c9eeab989c68521f6 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Mon, 20 Jun 2011 23:23:28 +0100 Subject: [PATCH] Avoid a deprecation warning with BinData --- lib/btc_wire_proto.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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