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

Infinite loop for Uint8 range #5483

Closed
johnmyleswhite opened this issue Jan 23, 2014 · 2 comments
Closed

Infinite loop for Uint8 range #5483

johnmyleswhite opened this issue Jan 23, 2014 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@johnmyleswhite
Copy link
Member

On OS X, this code goes into an infinite loop:

for x in 0xf1:0xff
    println(x)
end

At the same time, length(0xf1:0xff) evaluates to 15.

Related to changes in preparation for @simd patch?

@vtjnash
Copy link
Member

vtjnash commented Jan 23, 2014

probably an overflow bug in the way next and done handle state for ranges

@johnmyleswhite
Copy link
Member Author

Thanks, Simon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants