Fix different signedness in comparison warning
FossilOrigin-Name: 23b9889d29896191e94ff225fff81b724dd1681b9a794e18d582f75edec7747a
This commit is contained in:
parent
2c022c2de7
commit
e1c01cfd01
1 changed files with 4 additions and 1 deletions
|
@ -116,7 +116,10 @@ bindObject(SL3PreparedStatement *statement, int column, id object)
|
||||||
void *pool = objc_autoreleasePoolPush();
|
void *pool = objc_autoreleasePoolPush();
|
||||||
int column = 0;
|
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];
|
@throw [OFOutOfRangeException exception];
|
||||||
|
|
||||||
for (id object in array)
|
for (id object in array)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue