aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-04-19 13:59:57 -0700
committerGravatar GitHub <noreply@github.com>2018-04-19 13:59:57 -0700
commitdae53d5c494e7b98ea47dd16739e7ec434e02da0 (patch)
tree02b8242227d0e07e85d69e5de08fd5ad62b84018 /Firestore/core
parent9eea8d4fc480f32d57cab344c32ebe631a083e9d (diff)
Clean up warnings in Firestore (#1146)
Diffstat (limited to 'Firestore/core')
-rw-r--r--Firestore/core/src/firebase/firestore/util/error_apple.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Firestore/core/src/firebase/firestore/util/error_apple.h b/Firestore/core/src/firebase/firestore/util/error_apple.h
index e7c77c9..66080dd 100644
--- a/Firestore/core/src/firebase/firestore/util/error_apple.h
+++ b/Firestore/core/src/firebase/firestore/util/error_apple.h
@@ -40,7 +40,7 @@ inline NSError* MakeNSError(const int64_t error_code,
}
return [NSError
errorWithDomain:FIRFirestoreErrorDomain
- code:error_code
+ code:static_cast<NSInteger>(error_code)
userInfo:@{NSLocalizedDescriptionKey : WrapNSString(error_msg)}];
}