Skip to content

Commit

Permalink
Try to fix kakaopensource#46 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WIIILee committed Nov 25, 2022
1 parent 569cbb0 commit b229b78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/KakaJSON/Convert/Values.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ private extension Values {

// digit
if let digitType = type as? DigitValue.Type {
return NSDecimalNumber(decimal: decimal)
.flatMap { digitType.init(truncating: $0) }
return digitType.init(truncating: NSDecimalNumber(decimal: decimal))
}

// decimal number
Expand Down

0 comments on commit b229b78

Please sign in to comment.