From fcf62080d68e32cd1315e7f745d13a11d14697dc Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Sun, 10 Jun 2012 00:59:08 +0100 Subject: [PATCH] Re #1562. Make native comparison more realistic. This might have a small speed implication. --- Tests/Foundation/CPArrayPerformanceTest.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Foundation/CPArrayPerformanceTest.j b/Tests/Foundation/CPArrayPerformanceTest.j index ece1b6b96..5c1f4235a 100644 --- a/Tests/Foundation/CPArrayPerformanceTest.j +++ b/Tests/Foundation/CPArrayPerformanceTest.j @@ -233,7 +233,7 @@ var ELEMENTS = 100, result = CPOrderedSame; while (i < count) - if ((result = [descriptors[i++] compareObject:lhs withObject:rhs]) != CPOrderedSame) + if ((result = [descriptors[i++] compareObject:lhs withObject:rhs]) !== CPOrderedSame) return result; return result;