Skip to content

Commit 178b9b6

Browse files
Fixed warning in SQLiteDatabaseResult.
Introduced in commit 9757503, simple type-cast warning. Only seems to appear when compiling for testing though.
1 parent 2913eb6 commit 178b9b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Parse/Internal/LocalDataStore/SQLite/PFSQLiteDatabaseResult.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ - (BOOL)boolForColumn:(NSString *)columnName {
7373
}
7474

7575
- (BOOL)boolForColumnIndex:(int)columnIndex {
76-
return PFThreadSafetyPerform(_databaseQueue, ^{
76+
return PFThreadSafetyPerform(_databaseQueue, ^BOOL{
7777
return ([self intForColumnIndex:columnIndex] != 0);
7878
});
7979
}
@@ -159,7 +159,7 @@ - (BOOL)columnIsNull:(NSString *)columnName {
159159
}
160160

161161
- (BOOL)columnIndexIsNull:(int)columnIndex {
162-
return PFThreadSafetyPerform(_databaseQueue, ^{
162+
return PFThreadSafetyPerform(_databaseQueue, ^BOOL{
163163
return (sqlite3_column_type([self.statement sqliteStatement], columnIndex) == SQLITE_NULL);
164164
});
165165
}

0 commit comments

Comments
 (0)