Index: src/SL3PreparedStatement.m ================================================================== --- src/SL3PreparedStatement.m +++ src/SL3PreparedStatement.m @@ -114,11 +114,14 @@ - (void)bindWithArray: (OFArray *)array { void *pool = objc_autoreleasePoolPush(); int column = 0; - if (array.count > sqlite3_bind_parameter_count(_stmt)) + if (array.count > INT_MAX) + @throw [OFOutOfRangeException exception]; + + if ((int)array.count > sqlite3_bind_parameter_count(_stmt)) @throw [OFOutOfRangeException exception]; for (id object in array) bindObject(self, ++column, object);