mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Ensure, $eval and $evaltype, @unreachable() replaces $unreachable. <Type>.sizeof
This commit is contained in:
committed by
Christoffer Lerno
parent
4f4bc80953
commit
2802b2b96d
@@ -43,7 +43,7 @@ private fn void LinkedList.linkFirst(LinkedList *list, Type value)
|
||||
private fn void LinkedList.linkLast(LinkedList *list, Type value)
|
||||
{
|
||||
Node *last = list.last;
|
||||
Node *new_node = mem::alloc($sizeof(Node));
|
||||
Node *new_node = mem::alloc(Node.sizeof);
|
||||
*new_node = { .prev = last, .value = value };
|
||||
list.last = new_node;
|
||||
if (!last)
|
||||
|
||||
Reference in New Issue
Block a user