ObjFW  Diff

Differences From Artifact [78253ff0bd]:

  • File src/OFASN1Enumerated.m — part of check-in [d74f244ab7] at 2020-08-12 20:56:32 on branch trunk — Avoid using (u)intmax_t in methods It is not guaranteed that a type encoding for it exists. (user: js size: 2356) [more...]

To Artifact [ba2cabe5ff]:

  • File src/OFASN1Enumerated.m — part of check-in [aeb403a1ed] at 2020-10-10 14:27:37 on branch trunk — OFObject: Change type of -[hash] to unsigned long The internal hash is still 32 bit in most places, but this way, it is at least not baked into the API and ABI and can be upgraded later, should that ever be necessary. (user: js size: 2366) [more...]

87
88
89
90
91
92
93
94

95
96

97
98
99
100
101
102
103
87
88
89
90
91
92
93

94
95

96
97
98
99
100
101
102
103







-
+

-
+








	if (enumerated->_longLongValue != _longLongValue)
		return false;

	return true;
}

- (uint32_t)hash
- (unsigned long)hash
{
	return (uint32_t)_longLongValue;
	return (unsigned long)_longLongValue;
}

- (OFString *)description
{
	return [OFString stringWithFormat: @"<OFASN1Enumerated: %lld>",
					   _longLongValue];
}