ObjFW  Check-in [8aba9d8a33]

Overview
Comment:OFDate: Avoid property access in OF_BSWAP64_IF_LE
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8aba9d8a33a5e340f92f1de5a8de683c4a75d7f7510a1ec2015ee1a0339a3f8b
User & Date: js on 2019-03-12 21:47:58
Other Links: manifest | tags
Context
2019-03-12
21:50
OFHTTPRequest: Note that remoteAddress is copied check-in: 3b09055db5 user: js tags: trunk
21:47
OFDate: Avoid property access in OF_BSWAP64_IF_LE check-in: 8aba9d8a33 user: js tags: trunk
2019-03-09
10:48
Several minor fixes check-in: c1e949a8c6 user: js tags: trunk
Changes

Modified src/OFDate.m from [aa9496cc90] to [c654921311].

345
346
347
348
349
350
351

352

353
354
355
356
357
358
359
345
346
347
348
349
350
351
352

353
354
355
356
357
358
359
360







+
-
+







			uint64_t u;
		} d;

		if (![element.name isEqual: self.className] ||
		    ![element.namespace isEqual: OF_SERIALIZATION_NS])
			@throw [OFInvalidArgumentException exception];

		d.u = (uint64_t)element.hexadecimalValue;
		d.u = OF_BSWAP64_IF_LE((uint64_t)element.hexadecimalValue);
		d.u = OF_BSWAP64_IF_LE(d.u);
		_seconds = OF_BSWAP_DOUBLE_IF_LE(d.d);

		objc_autoreleasePoolPop(pool);
	} @catch (id e) {
		[self release];
		@throw e;
	}