Skip to content

Commit

Permalink
undo array changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jul 28, 2024
1 parent cc9ae81 commit 6aced19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ JL_DLLEXPORT int jl_array_validate_dims(size_t *nel, uint32_t ndims, size_t *dim
return 0;
}

#ifndef JL_NDEBUG
static inline int is_ntuple_long(jl_value_t *v)
{
if (!jl_is_tuple(v))
Expand All @@ -52,6 +53,7 @@ static inline int is_ntuple_long(jl_value_t *v)
}
return 1;
}
#endif

#define jl_array_elsize(a) (((jl_datatype_t*)jl_typetagof((a)->ref.mem))->layout->size)

Expand Down

0 comments on commit 6aced19

Please sign in to comment.