Skip to content

Commit 5a01c3e

Browse files
committed
Do not allocate memory useless
1 parent e083ebd commit 5a01c3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pg_ext/big_decimal.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module PG
44
struct Numeric
55
# Returns a BigDecimal representation of the numeric. This retains all precision.
66
def to_big_d
7-
return BigDecimal.new("0") if nan? || ndigits == 0
7+
return BigDecimal.new(0) if nan? || ndigits == 0
88
BigDecimal.new(to_s)
99
end
1010
end

0 commit comments

Comments
 (0)