Skip to content

Commit 569cbb0

Browse files
committed
Try to fix kakaopensource#46 issue
1 parent 88d8587 commit 569cbb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/KakaJSON/Convert/Values.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ private extension Values {
214214

215215
// digit
216216
if let digitType = type as? DigitValue.Type {
217-
return Double("\(decimal)")
218-
.flatMap { NSNumber(value: $0) }
217+
return NSDecimalNumber(decimal: decimal)
219218
.flatMap { digitType.init(truncating: $0) }
220219
}
221220

0 commit comments

Comments
 (0)