Skip to content

Commit

Permalink
Check the right value
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed Mar 4, 2019
1 parent f383390 commit fdd3a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASDisplayNode+Layout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ - (void)_assertSubnodeState
[sublayouts getObjects:cSublayouts range:NSMakeRange(0, AS_ARRAY_SIZE(cSublayouts))];

// Fast-path if we are in the correct state (likely).
if (sublayouts.count == AS_ARRAY_SIZE(cSublayouts)) {
if (_subnodes.count == AS_ARRAY_SIZE(cSublayouts)) {
NSUInteger i = 0;
BOOL matches = YES;
for (ASDisplayNode *subnode in _subnodes) {
Expand Down

0 comments on commit fdd3a91

Please sign in to comment.