Skip to content

Commit 7b98f59

Browse files
Fix Integer Format Specifier Problem (#380)
Since NSUInteger is variable size based on architecture, it’s best to cast the variable to an explictly sized unsigned long and use the appropriate format specifier
1 parent 2e25033 commit 7b98f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Leanplum-SDK/Classes/Utilities/LPDatabase.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ - (sqlite3_stmt *)sqliteStatementFromQuery:(NSString *)query
148148
SQLITE_TRANSIENT);
149149

150150
if (result != SQLITE_OK) {
151-
NSString *message = [NSString stringWithFormat:@"SQLite fail to bind %@ to %ld", obj, idx+1];
151+
NSString *message = [NSString stringWithFormat:@"SQLite fail to bind %@ to %lu", obj, (unsigned long)idx+1];
152152
[self handleSQLiteError:message errorResult:result query:query];
153153
}
154154
}];

0 commit comments

Comments
 (0)