Skip to content

Commit e12b255

Browse files
committed
Do not allocate memory useless
1 parent a915340 commit e12b255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)