Skip to content

Commit e9aa94f

Browse files
committed
Merge branch 'master' of https://github.com/kongtomorrow/F-Script. Match behavior of [[NSArray reverseObjectEnumerator] allObjects]
2 parents fe94c63 + b2722a4 commit e9aa94f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: FScriptFramework/FSArrayEnumerator.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ - (FSArray *)allObjects
5050
if (increment == 1)
5151
return (FSArray *)[array subarrayWithRange:NSMakeRange(next, (last-next)+1)];
5252
else
53-
return (FSArray *)[array subarrayWithRange:NSMakeRange(0, next+1)];
53+
return [(FSArray *)[array subarrayWithRange:NSMakeRange(0, next+1)] reverse];
5454
}
5555
}
5656

0 commit comments

Comments
 (0)