Differences From Artifact [6b0927552c]:
- File
src/OFDate.m
— part of check-in
[38dda0d1c7]
at
2012-11-23 23:57:35
on branch trunk
— Allow passing nil to -[earlierDate/laterDate:].
If the argument is nil, it will return the receiver. (user: js, size: 13287) [annotate] [blame] [check-ins using]
To Artifact [2efbaabb9c]:
- File src/OFDate.m — part of check-in [ac51f5f0cf] at 2012-12-06 00:14:47 on branch trunk — Improve -[hash] of OFNumber and OFObject. (user: js, size: 13292) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
364 365 366 367 368 369 370 | - (uint32_t)hash { uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; | | | | 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | - (uint32_t)hash { uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; uint_fast8_t i; d.d = OF_BSWAP_DOUBLE_IF_BE(seconds); OF_HASH_INIT(hash); for (i = 0; i < sizeof(double); i++) OF_HASH_ADD(hash, d.b[i]); OF_HASH_FINALIZE(hash); |
︙ | ︙ |