Skip to content

Commit 74d020e

Browse files
KrivoblotskyMrMage
authored andcommitted
Fix building for 32-bit architectures (#535)
1 parent 2001ac7 commit 74d020e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GRPC/GRPCTimeout.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public struct GRPCTimeout: CustomStringConvertible, Equatable {
4646

4747
// See "Timeout" in https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests
4848
let description = "\(amount)\(unit.rawValue)"
49-
let nanoseconds = Int64(amount) * Int64(unit.asNanoseconds)
49+
let nanoseconds = Int64(amount) * unit.asNanoseconds
5050

5151
return GRPCTimeout(nanoseconds: nanoseconds, description: description)
5252
}
@@ -133,7 +133,7 @@ private enum GRPCTimeoutUnit: String {
133133
case microseconds = "u"
134134
case nanoseconds = "n"
135135

136-
internal var asNanoseconds: Int {
136+
internal var asNanoseconds: Int64 {
137137
switch self {
138138
case .hours:
139139
return 60 * 60 * 1000 * 1000 * 1000

0 commit comments

Comments
 (0)