Fixed: Speed improvement

This commit is contained in:
Martin Carlberg committed 2015-09-30 16:59:16 +02:00
1 parent 3a7384ec26
commit 5d415e6679
1 file changed
+3 -3
+3 -3
View File
@@ -222,13 +222,13 @@ var CPDictionaryMaxDescriptionRecursion = 10;
{
self = [super init];
if ([objects count] != [keyArray count])
var i = [keyArray count];
if ([objects count] != i)
[CPException raise:CPInvalidArgumentException reason:[CPString stringWithFormat:@"Counts are different.(%d != %d)", [objects count], [keyArray count]]];
if (self)
{
var i = [keyArray count];
while (i--)
{
var value = objects[i],