Skip to content

Commit e43ee0e

Browse files
committed
Fix added fields' types
1 parent 0999d36 commit e43ee0e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/gf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,11 +2952,11 @@ JL_DLLEXPORT jl_value_t *jl_apply_generic(jl_value_t *F, jl_value_t **args, uint
29522952
}
29532953

29542954
#ifdef JL_DISPATCH_LOG_BOXES
2955-
JL_DLLEXPORT uint64_t jl_get_num_dynamic_dispatches(jl_method_t *m)
2955+
JL_DLLEXPORT int32_t jl_get_num_dynamic_dispatches(jl_method_t *m)
29562956
{
29572957
return m->num_dynamic_dispatches;
29582958
}
2959-
JL_DLLEXPORT uint64_t jl_get_dynamic_dispatch_ns(jl_method_t *m)
2959+
JL_DLLEXPORT int64_t jl_get_dynamic_dispatch_ns(jl_method_t *m)
29602960
{
29612961
return m->dynamic_dispatch_ns;
29622962
}

src/jltypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2663,7 +2663,7 @@ void jl_init_types(void) JL_GC_DISABLED
26632663
jl_uint8_type,
26642664
jl_uint8_type,
26652665
jl_int32_type,
2666-
jl_uint64_type),
2666+
jl_int64_type),
26672667
jl_emptysvec,
26682668
0, 1, 10);
26692669
//const static uint32_t method_constfields[1] = { 0x03fc065f }; // (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<6)|(1<<9)|(1<<10)|(1<<18)|(1<<19)|(1<<20)|(1<<21)|(1<<22)|(1<<23)|(1<<24)|(1<<25);

src/julia.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ typedef struct _jl_method_t {
348348
// forcing the conclusion to always true.
349349
_jl_purity_overrides_t purity;
350350

351-
uint32_t num_dynamic_dispatches;
352-
uint64_t dynamic_dispatch_ns;
351+
int32_t num_dynamic_dispatches;
352+
int64_t dynamic_dispatch_ns;
353353

354354
// hidden fields:
355355
// lock for modifications to the method

0 commit comments

Comments
 (0)