ObjFW  Check-in [cd9bd80792]

Overview
Comment:Add - hash for OFNumber.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cd9bd807920a03acdf2138705088b6d7404ec2198bc8ba98ba5ff504fa67eca2
User & Date: js on 2009-04-17 16:45:28
Other Links: manifest | tags
Context
2009-04-19
17:06
Don't use forwarding for OFPlugin. check-in: 179174571e user: js tags: trunk
2009-04-17
16:45
Add - hash for OFNumber. check-in: cd9bd80792 user: js tags: trunk
2009-04-16
17:18
Get rid of dependency on method_getSizeOfArguments. check-in: 345716d824 user: js tags: trunk
Changes

Modified src/OFNumber.m from [0f95863ba4] to [b19ce3cb16].

614
615
616
617
618
619
620





621
	case OF_NUMBER_LONG_DOUBLE:
		return ([obj asLongDouble] == [self asLongDouble] ? YES : NO);
	default:
		@throw [OFInvalidArgumentException newWithClass: [self class]
						    andSelector: _cmd];
	}
}





@end







>
>
>
>
>

614
615
616
617
618
619
620
621
622
623
624
625
626
	case OF_NUMBER_LONG_DOUBLE:
		return ([obj asLongDouble] == [self asLongDouble] ? YES : NO);
	default:
		@throw [OFInvalidArgumentException newWithClass: [self class]
						    andSelector: _cmd];
	}
}

- (uint32_t)hash
{
	return [self asUInt32];
}
@end