Skip to content

Commit ad9d9be

Browse files
mlechutopolarity
authored andcommitted
Fixes for 32-bit
1 parent 6379723 commit ad9d9be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

JuliaLowering/src/eval.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ else
132132
conversions = [:(convert($t, $n)) for (t,n) in zip(fts, fns)]
133133

134134
expected_fns = (:code, :debuginfo, :ssavaluetypes, :ssaflags, :slotnames, :slotflags, :slottypes, :rettype, :parent, :edges, :min_world, :max_world, :method_for_inference_limit_heuristics, :nargs, :propagate_inbounds, :has_fcall, :has_image_globalref, :nospecializeinfer, :isva, :inlining, :constprop, :purity, :inlining_cost)
135-
expected_fts = (Vector{Any}, Core.DebugInfo, Any, Vector{UInt32}, Vector{Symbol}, Vector{UInt8}, Any, Any, Any, Any, UInt64, UInt64, Any, UInt64, Bool, Bool, Bool, Bool, Bool, UInt8, UInt8, UInt16, UInt16)
135+
expected_fts = (Vector{Any}, Core.DebugInfo, Any, Vector{UInt32}, Vector{Symbol}, Vector{UInt8}, Any, Any, Any, Any, UInt, UInt, Any, UInt, Bool, Bool, Bool, Bool, Bool, UInt8, UInt8, UInt16, UInt16)
136136

137137
code = if fns != expected_fns
138138
unexpected_fns = collect(setdiff(Set(fns), Set(expected_fns)))

JuliaLowering/src/hooks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function core_lowering_hook(@nospecialize(code), mod::Module,
1313

1414
# TODO: fix in base
1515
file = file isa Ptr{UInt8} ? unsafe_string(file) : file
16-
line = !(line isa Int64) ? Int64(line) : line
16+
line = !(line isa Int) ? Int(line) : line
1717

1818
local st0 = nothing
1919
try

JuliaLowering/test/misc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ end
176176
jeval(test_mod, "\"docstr12\" f12(x::Int, y::U, z::T=1) where {T, U<:Number}")
177177
d = jeval(test_mod, "@doc f12")
178178
@test d |> string === "docstr12\n"
179-
@test d.meta[:results][1].data[:typesig] === Union{Tuple{Int64, U, T}, Tuple{Int64, U}} where {T, U<:Number}
179+
@test d.meta[:results][1].data[:typesig] === Union{Tuple{Int, U, T}, Tuple{Int, U}} where {T, U<:Number}
180180

181181
end
182182

0 commit comments

Comments
 (0)