lib/amq/protocol/table_value_decoder.rb in amq-protocol-2.3.0 vs lib/amq/protocol/table_value_decoder.rb in amq-protocol-2.3.1
- old
+ new
@@ -123,10 +123,10 @@
def self.decode_big_decimal(data, offset)
decimals, raw = data.slice(offset, 5).unpack(PACK_UCHAR_UINT32)
offset += 5
- v = BigDecimal.new(raw.to_s) * (BigDecimal.new(TEN) ** -decimals)
+ v = BigDecimal(raw.to_s) * (BigDecimal(TEN) ** -decimals)
[v, offset]
end # self.decode_big_decimal(data, offset)