Differences From Artifact [69ce62e752]:
- File
src/OFDate.m
— part of check-in
[d3158d091f]
at
2016-01-05 22:00:03
on branch trunk
— (u)int_fast*_t -> (u)int*_t
(U)INT_FAST*_MAX is broken on Android, which makes (u)int_fast*_t
dangerous to use while it does not provide any real speed benefit. (user: js, size: 13699) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
353 354 355 356 357 358 359 | - (uint32_t)hash { uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; | < | | 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 | - (uint32_t)hash { uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; d.d = OF_BSWAP_DOUBLE_IF_BE(_seconds); OF_HASH_INIT(hash); for (size_t i = 0; i < sizeof(double); i++) OF_HASH_ADD(hash, d.b[i]); OF_HASH_FINALIZE(hash); return hash; } |
︙ | ︙ |