We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3173d3 + e02692f commit fd1a735Copy full SHA for fd1a735
base/int.jl
@@ -182,11 +182,11 @@ trailing_ones(x::Integer) = trailing_zeros(~x)
182
# note: this early during bootstrap, `>=` is not yet available
183
# note: we only define Int shift counts here; the generic case is handled later
184
>>(x::BitInteger, y::Int) =
185
- 0 <= y ? x >> unsigned(y) : x << unsigned(-y)
+ select_value(0 <= y, x >> unsigned(y), x << unsigned(-y))
186
<<(x::BitInteger, y::Int) =
187
- 0 <= y ? x << unsigned(y) : x >> unsigned(-y)
+ select_value(0 <= y, x << unsigned(y), x >> unsigned(-y))
188
>>>(x::BitInteger, y::Int) =
189
- 0 <= y ? x >>> unsigned(y) : x << unsigned(-y)
+ select_value(0 <= y, x >>> unsigned(y), x << unsigned(-y))
190
191
## integer conversions ##
192
0 commit comments