~singpolyma/dhall-ruby

bb41559a5b1dc4205ad3a66ced4be1c23c211270 — Stephen Paul Weber 3 years ago 96d4bbd
0 == 0.0 so unfold line
1 files changed, 1 insertions(+), 2 deletions(-)

M lib/dhall/ast.rb
M lib/dhall/ast.rb => lib/dhall/ast.rb +1 -2
@@ 790,8 790,7 @@ module Dhall
		end

		def to_cbor(packer=nil)
			if [0.0, Float::INFINITY, -Float::INFINITY].include?(value) ||
			   value.nan?
			if [0, Float::INFINITY, -Float::INFINITY].include?(value) || value.nan?
				return value.to_cbor(packer)
			end