summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-10 14:02:35 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-11 13:28:04 -0700
commitbbde70e3f0c62bda0e3c74a970ec085e46aa9b00 (patch)
tree17d11dc958220108d9cdb3e76cc8e124f8b469b5
parent1c7c5af69df3edc19ba48697d350de087b9243cf (diff)
downloadqtlocation-mapboxgl-bbde70e3f0c62bda0e3c74a970ec085e46aa9b00.tar.gz
[ios] Fixed style count assertion
-rw-r--r--platform/ios/app/MBXViewController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index f8f2399e23..2102ff2705 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -452,7 +452,7 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
unsigned numMethods = 0;
Method *methods = class_copyMethodList(object_getClass([MGLStyle class]), &numMethods);
unsigned numStyleURLMethods = 0;
- for (NSUInteger i; i < numMethods; i++) {
+ for (NSUInteger i = 0; i < numMethods; i++) {
Method method = methods[i];
if (method_getNumberOfArguments(method) == 2 /* _cmd, self */) {
SEL selector = method_getName(method);