Differences From Artifact [b0a8225024]:
- File src/OFDate.m — part of check-in [3f29426e99] at 2012-10-09 21:57:09 on branch trunk — Remove wrong byte swaps. (user: js, size: 13164) [annotate] [blame] [check-ins using]
To Artifact [66b4bbf344]:
- File
src/OFDate.m
— part of check-in
[1cb8fee5c3]
at
2012-10-13 21:06:59
on branch trunk
— of_bswap* -> OF_BSWAP*.
This makes it clear that multiple evaluation of parameters is possible. (user: js, size: 13164) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
366 367 368 369 370 371 372 | uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; uint8_t i; | | | 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; uint8_t i; d.d = OF_BSWAP_DOUBLE_IF_LE(seconds); OF_HASH_INIT(hash); for (i = 0; i < sizeof(double); i++) OF_HASH_ADD(hash, d.b[i]); OF_HASH_FINALIZE(hash); |
︙ | ︙ |