Reversing a range of `UInt8`s yields an empty set

Is this a bug or not? (v1.7.0)

julia> UInt8(1):UInt8(12) |> collect
12-element Vector{UInt8}:
 0x01
 0x02
 0x03
 0x04
 0x05
 0x06
 0x07
 0x08
 0x09
 0x0a
 0x0b
 0x0c

julia> reverse(UInt8(1):UInt8(12)) |> collect
UInt8[]

Edit: Looks like it was.

https://github.com/JuliaLang/julia/issues/29576

I can see that a fixed was merged to master, but how do I figure out which Julia release I need in order to fix this bug? Or do I need nightly?

it’s fixed in 1.8:

1 Like

How do you know which release includes the fix?

I see that the fix itself is here on Github:

https://github.com/JuliaLang/julia/pull/29842/commits/f7e3259121880d91e503f428c122d0f079ba12b9

It says this was merged to master on January 7, 2022.

But if you compare v1.7.0 with v1.8.0-beta2 (the latest release) on Github here the newest addition is from May 2021. So it looks like the fix will not be included in 1.8.0 if I download the beta now, right?

1 Like

I see it, you just need to load a billion times towards the bottom of the webpage

2 Likes

Aha, they are in forward chronological order…