ObjFW  Diff

Differences From Artifact [1b24e74726]:

To Artifact [965d322b8e]:


938
939
940
941
942
943
944
945

946
947
948
949

950
951
952
953
954
955
956
957
958
959
938
939
940
941
942
943
944

945
946



947
948


949
950
951
952
953
954
955







-
+

-
-
-
+

-
-








	if (isSigned(self) || isSigned(number))
		return (number.longLongValue == self.longLongValue);

	return (number.unsignedLongLongValue == self.unsignedLongLongValue);
}

- (of_comparison_result_t)compare: (id <OFComparing>)object
- (of_comparison_result_t)compare: (OFNumber *)number
{
	OFNumber *number;

	if (![(id)object isKindOfClass: [OFNumber class]])
	if (![number isKindOfClass: [OFNumber class]])
		@throw [OFInvalidArgumentException exception];

	number = (OFNumber *)object;

	if (isFloat(self) || isFloat(number)) {
		double double1 = self.doubleValue;
		double double2 = number.doubleValue;

		if (double1 > double2)
			return OF_ORDERED_DESCENDING;