Skip to content

Commit 78de4d6

Browse files
authored
Merge pull request #41 from a2/a2-patch-1
Fix use of MessagePackValue.integerValue for .uint(Int64.max)
2 parents 1b0fad0 + 76f6eb5 commit 78de4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MessagePack/ConvenienceProperties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extension MessagePackValue {
4848
switch self {
4949
case .int(let value):
5050
return value
51-
case .uint(let value) where value < UInt64(Int64.max):
51+
case .uint(let value) where value <= UInt64(Int64.max):
5252
return Int64(value)
5353
default:
5454
return nil

0 commit comments

Comments
 (0)