mirror of
https://github.com/darlinghq/fmdb.git
synced 2025-02-22 06:40:32 +00:00
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:
parent
ca68a5f880
commit
32bb710845
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user