Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions YYAsyncLayer/YYAsyncLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ static dispatch_queue_t YYAsyncLayerGetDisplayQueue() {
}
}
});
int32_t cur = OSAtomicIncrement32(&counter);
if (cur < 0) cur = -cur;
uint32_t cur = (uint32_t)OSAtomicIncrement32(&counter);
return queues[(cur) % queueCount];
#undef MAX_QUEUE_COUNT
#endif
Expand Down