ObjFW  Check-in [75dde25734]

Overview
Comment:OFDate: Fix wrong format specifier for microseconds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 75dde257348c77b6041b4bac300cccc332f2bd5c53f93dec63e4ed6e8e1d7603
User & Date: js on 2011-07-09 22:03:16
Other Links: manifest | tags
Context
2011-07-10
03:18
Clang with the new GNU runtime does not like blocks checked against nil. check-in: bb68bc87dd user: js tags: trunk
2011-07-09
22:03
OFDate: Fix wrong format specifier for microseconds. check-in: 75dde25734 user: js tags: trunk
21:58
Only add -fgnu89-inline if it doesn't generate a warning. check-in: 4f8cf7e3ec user: js tags: trunk
Changes

Modified src/OFDate.m from [eec5fc6376] to [6ee6276845].

346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
	OFXMLElement *element;
	OFString *secondsString, *microsecondsString;

	element = [OFXMLElement elementWithName: [self className]
				      namespace: OF_SERIALIZATION_NS];

	secondsString = [OFString stringWithFormat: @"%" @PRId64, seconds];
	microsecondsString = [OFString stringWithFormat: @"%" @PRId64,
							 microseconds];

	[element addAttributeWithName: @"seconds"
			  stringValue: secondsString];
	[element addAttributeWithName: @"microseconds"
			  stringValue: microsecondsString];








|







346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
	OFXMLElement *element;
	OFString *secondsString, *microsecondsString;

	element = [OFXMLElement elementWithName: [self className]
				      namespace: OF_SERIALIZATION_NS];

	secondsString = [OFString stringWithFormat: @"%" @PRId64, seconds];
	microsecondsString = [OFString stringWithFormat: @"%" @PRIu32,
							 microseconds];

	[element addAttributeWithName: @"seconds"
			  stringValue: secondsString];
	[element addAttributeWithName: @"microseconds"
			  stringValue: microsecondsString];