ObjSQLite3  Check-in [23b9889d29]

Overview
Comment:Fix different signedness in comparison warning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 23b9889d29896191e94ff225fff81b724dd1681b9a794e18d582f75edec7747a
User & Date: js 2024-08-05 00:28:37
Context
2024-08-06
21:56
Improve meson.build files check-in: da6b5c90d4 user: js tags: trunk
2024-08-05
00:28
Fix different signedness in comparison warning check-in: 23b9889d29 user: js tags: trunk
2024-08-04
20:38
Migrate build system to Meson check-in: 2aa27f332c user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/SL3PreparedStatement.m.

112
113
114
115
116
117
118



119
120
121
122
123
124
125
126
}

- (void)bindWithArray: (OFArray *)array
{
	void *pool = objc_autoreleasePoolPush();
	int column = 0;




	if (array.count > sqlite3_bind_parameter_count(_stmt))
		@throw [OFOutOfRangeException exception];

	for (id object in array)
		bindObject(self, ++column, object);

	objc_autoreleasePoolPop(pool);
}







>
>
>
|







112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
}

- (void)bindWithArray: (OFArray *)array
{
	void *pool = objc_autoreleasePoolPush();
	int column = 0;

	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);

	objc_autoreleasePoolPop(pool);
}