Skip to content

Commit

Permalink
u3: use u3a_celloc() in u3a_take()
Browse files Browse the repository at this point in the history
  • Loading branch information
joemfb committed Oct 11, 2023
1 parent a1d23ce commit 3553e43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/noun/allocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,9 +1123,7 @@ _ca_take_atom(u3a_atom* old_u)
static inline u3_cell
_ca_take_cell(u3a_cell* old_u, u3_noun hed, u3_noun tel)
{
// XX use u3a_celloc?
//
c3_w* new_w = u3a_walloc(c3_wiseof(u3a_cell));
c3_w* new_w = u3a_celloc();
u3a_cell* new_u = (u3a_cell*)(void *)new_w;
u3_cell new = u3a_to_pom(u3a_outa(new_u));

Expand Down

0 comments on commit 3553e43

Please sign in to comment.