Differences From Artifact [15e27ceca1]:
- File src/OFNumber.m — part of check-in [612cd94090] at 2018-02-11 12:15:14 on branch trunk — Make OFNumber a subclass of OFValue (user: js, size: 30967) [annotate] [blame] [check-ins using]
To Artifact [25c5c7f684]:
- File
src/OFNumber.m
— part of check-in
[f484fedee2]
at
2018-03-10 19:05:24
on branch trunk
— Add OFColor
This is useful so that multiple libraries using ObjFW can share the same
type for colors, similar to e.g. of_rectangle_t. (user: js, size: 30972) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1082 1083 1084 1085 1086 1087 1088 | } d; if (isnan([self doubleValue])) return 0; d.d = OF_BSWAP_DOUBLE_IF_BE([self doubleValue]); | | | 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 | } d; if (isnan([self doubleValue])) return 0; d.d = OF_BSWAP_DOUBLE_IF_BE([self doubleValue]); for (uint_fast8_t i = 0; i < sizeof(double); i++) OF_HASH_ADD(hash, d.b[i]); } else if (type & OF_NUMBER_TYPE_SIGNED) { intmax_t v = [self intMaxValue] * -1; while (v != 0) { OF_HASH_ADD(hash, v & 0xFF); v >>= 8; |
︙ | ︙ |