Differences From Artifact [c70c88b347]:
- File
src/OFDate.m
— part of check-in
[b6ee372b98]
at
2020-08-11 19:45:36
on branch trunk
— OFString: Rework number parsing API
This solves the old signed vs. unsigned problem and allows for more
bases than just 8, 10 and 16, as well as auto-detection of the base (if
base is 0). (user: js, size: 16109) [annotate] [blame] [check-ins using]
To Artifact [34afa10ebd]:
- File src/OFDate.m — part of check-in [cbc09c6e26] at 2020-09-27 00:57:30 on branch trunk — Work around bugs in Apple GCC 4.2.1 (user: js, size: 16126) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
466 467 468 469 470 471 472 | return [element autorelease]; } - (OFData *)messagePackRepresentation { void *pool = objc_autoreleasePoolPush(); int64_t seconds = (int64_t)_seconds; | | > | 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 | return [element autorelease]; } - (OFData *)messagePackRepresentation { void *pool = objc_autoreleasePoolPush(); int64_t seconds = (int64_t)_seconds; uint32_t nanoseconds = (uint32_t)((_seconds - trunc(_seconds)) * 1000000000); OFData *ret; if (seconds >= 0 && seconds < 0x400000000) { if (seconds <= UINT32_MAX && nanoseconds == 0) { uint32_t seconds32 = (uint32_t)seconds; OFData *data; |
︙ | ︙ |