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

Wrong result when broadcasting ustrip over ranges whose eltype and step have different units #712

Closed
sostock opened this issue Mar 11, 2024 · 1 comment · Fixed by #715
Closed
Labels

Comments

@sostock
Copy link
Collaborator

sostock commented Mar 11, 2024

julia> r = StepRange{typeof(1m),typeof(1cm)}(1m,1cm,2m)
(1//1:1//100:2//1) m

julia> length(r)
101

julia> ustrip.(r)
1:1:2

julia> length(ans)
2
@sostock sostock added the bug label Mar 11, 2024
@giordano
Copy link
Collaborator

Single-argument ustrip... sigh 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants