Added cast to fix warning on 32-bit builds.

The call to memcpy in -dataForColumnIndex: was being passed an int (it accepts a size_t, ie: long on some platforms). This generated a warning in Xcode 5 when building (in my instance) for the iPad.
This commit is contained in:
A. R. Younce 2014-05-31 14:52:53 -04:00
parent ca68a5f880
commit 32bb710845

View File

@ -293,7 +293,7 @@
NSMutableData *data = [NSMutableData dataWithLength:(NSUInteger)dataSize];
memcpy([data mutableBytes], sqlite3_column_blob([_statement statement], columnIdx), dataSize);
memcpy([data mutableBytes], sqlite3_column_blob([_statement statement], columnIdx), (size_t)dataSize);
return data;
}