Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loop optimize #2129

Closed
wants to merge 1 commit into from
Closed

loop optimize #2129

wants to merge 1 commit into from

Conversation

mirichi
Copy link
Contributor

@mirichi mirichi commented Apr 26, 2014

If guarantee the loop one or more times, this is more better

@matz
Copy link
Member

matz commented Apr 26, 2014

Using do .. while is unsafe for zero count. I know you've added guard to check before calling, but someone else maybe call the function with zero size in the future.

@matz matz closed this in e76be4e Apr 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants