Skip to content

Commit

Permalink
Merge pull request #41 from a2/a2-patch-1
Browse files Browse the repository at this point in the history
Fix use of MessagePackValue.integerValue for .uint(Int64.max)
  • Loading branch information
a2 authored Feb 20, 2017
2 parents 1b0fad0 + 76f6eb5 commit 78de4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MessagePack/ConvenienceProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension MessagePackValue {
switch self {
case .int(let value):
return value
case .uint(let value) where value < UInt64(Int64.max):
case .uint(let value) where value <= UInt64(Int64.max):
return Int64(value)
default:
return nil
Expand Down

0 comments on commit 78de4d6

Please sign in to comment.