Differences From Artifact [fa697c55af]:
- File src/OFDate.m — part of check-in [e0b9167693] at 2016-02-21 15:37:42 on branch trunk — Make use of C99-style for loops (user: js, size: 13694) [annotate] [blame] [check-ins using]
To Artifact [d7cb394675]:
- File
src/OFDate.m
— part of check-in
[f1765412c7]
at
2016-02-22 15:25:43
on branch trunk
— OFDate: Do not use lrint() for microseconds
It's better to make sure we never round up, as it's better to be a
little bit behind in time than ahead.This has the nice side effect of fixing the test on the 3DS, as lrint()
is behaving differently there. (user: js, size: 13690) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
426 427 428 429 430 431 432 | objc_autoreleasePoolPop(pool); return [element autorelease]; } - (uint32_t)microsecond { | | | 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | objc_autoreleasePoolPop(pool); return [element autorelease]; } - (uint32_t)microsecond { return (uint32_t)((_seconds - floor(_seconds)) * 1000000); } - (uint8_t)second { GMTIME_RET(tm_sec) } |
︙ | ︙ |