Skip to content

Commit c3e2c5b

Browse files
committed
Fix my fix
1 parent 12cb4f5 commit c3e2c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgresNIO/Data/PostgresData+Numeric.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public struct PostgresNumeric: CustomStringConvertible, CustomDebugStringConvert
160160
if self.weight > 0 {
161161
offset = (self.weight + 1) - self.ndigits
162162
} else if self.weight < 0 {
163-
offset = self.ndigits - (abs(self.weight) + 1)
163+
offset = abs(self.weight + 1)
164164
} else {
165165
offset = 0
166166
}

0 commit comments

Comments
 (0)