Skip to content

Commit eafcd93

Browse files
committed
Switch the CodeInfo world fields to ulong
They are declared as `size_t` in the header, which is unsigned.
1 parent 90ec91e commit eafcd93

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

base/compiler/inferencestate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mutable struct InferenceState
8888
end
8989

9090
min_valid = src.min_world
91-
max_valid = src.max_world == (typemax(UInt)%Int) ?
91+
max_valid = src.max_world == typemax(UInt) ?
9292
get_world_counter() : src.max_world
9393
frame = new(
9494
params, result, linfo,

base/compiler/typeinfer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ function typeinf(frame::InferenceState)
6161
for caller in frames
6262
caller.min_valid = min_valid
6363
caller.max_valid = max_valid
64-
caller.src.min_world = min_valid % Int
65-
caller.src.max_world = max_valid % Int
64+
caller.src.min_world = min_valid
65+
caller.src.max_world = max_valid
6666
if cached
6767
cache_result(caller.result, min_valid, max_valid)
6868
end

src/jltypes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,8 +2101,8 @@ void jl_init_types(void) JL_GC_DISABLED
21012101
jl_any_type,
21022102
jl_any_type,
21032103
jl_any_type,
2104-
jl_long_type,
2105-
jl_long_type,
2104+
jl_ulong_type,
2105+
jl_ulong_type,
21062106
jl_bool_type,
21072107
jl_bool_type,
21082108
jl_bool_type,

0 commit comments

Comments
 (0)