ObjFW  Diff

Differences From Artifact [bf3d520a45]:

To Artifact [cc46586b15]:


216
217
218
219
220
221
222
223

224
225
226
227

228
229
230
231
232
233
234
216
217
218
219
220
221
222

223
224
225
226

227
228
229
230
231
232
233
234







-
+



-
+







		const char *cString;
		size_t i;

		_itemSize = 1;
		_count = [string
		    cStringLengthWithEncoding: OF_STRING_ENCODING_ASCII];

		if (_count & 1)
		if (_count % 2 != 0)
			@throw [OFInvalidFormatException
			    exceptionWithClass: [self class]];

		_count >>= 1;
		_count /= 2;
		cString = [string
		    cStringWithEncoding: OF_STRING_ENCODING_ASCII];
		_items = [self allocMemoryWithSize: _count];

		for (i = 0; i < _count; i++) {
			uint8_t c1 = cString[2 * i];
			uint8_t c2 = cString[2 * i + 1];