Skip to content

Commit

Permalink
don't reset array length and size fields on array_to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Apr 29, 2024
1 parent 5308c26 commit 7b08f4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ JL_DLLEXPORT jl_value_t *jl_array_to_string(jl_array_t *a)
}
a->nrows = 0;
a->length = 0;
a->maxsize = 0;
return jl_pchar_to_string((const char*)jl_array_data(a), len);
}

Expand Down

0 comments on commit 7b08f4c

Please sign in to comment.