aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Database/Api
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2018-06-25 10:49:10 -0700
committerGravatar GitHub <noreply@github.com>2018-06-25 10:49:10 -0700
commit16132541d439baa9a1f80bb2b9b004f7178cba4d (patch)
tree84401d4a1576a56b23e010936ba1195b3620b4f1 /Firebase/Database/Api
parent19e0c0bb6ab4e3fdbc72acf9bd967e1ffaa3866d (diff)
Fix undefined behavior sanitizer issues in RTDB (#1445)
Diffstat (limited to 'Firebase/Database/Api')
-rw-r--r--Firebase/Database/Api/FIRDatabaseQuery.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Firebase/Database/Api/FIRDatabaseQuery.m b/Firebase/Database/Api/FIRDatabaseQuery.m
index eedc735..de18a7c 100644
--- a/Firebase/Database/Api/FIRDatabaseQuery.m
+++ b/Firebase/Database/Api/FIRDatabaseQuery.m
@@ -253,7 +253,7 @@ priorityMethodCalled:(BOOL)priorityMethodCalled {
if (limit == 0) {
[NSException raise:INVALID_QUERY_PARAM_ERROR format:@"Limit can't be zero"];
}
- if (limit >= 1l<<31) {
+ if (limit >= 1ul<<31) {
[NSException raise:INVALID_QUERY_PARAM_ERROR format:@"Limit must be less than 2,147,483,648"];
}
}