Skip to content

Commit

Permalink
more casting
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Jun 14, 2023
1 parent 4bfac3d commit 3283e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3973,7 +3973,7 @@ JL_DLLEXPORT int jl_gc_conservative_gc_support_enabled(void)
JL_DLLEXPORT jl_value_t *jl_gc_internal_obj_base_ptr(void *p)
{
p = (char *) p - 1;
if (gc_alloc_map_is_set(p)) {
if (gc_alloc_map_is_set((char*)p)) {
jl_gc_pagemeta_t *meta = page_metadata(p);
char *page = gc_page_data(p);
// offset within page.
Expand Down

0 comments on commit 3283e7f

Please sign in to comment.