mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix of $sizeof(Type) => Type.sizeof
This commit is contained in:
@@ -47,7 +47,7 @@ fn void Stack.push(Stack* this, Type element)
|
||||
if (this.capacity == this.size)
|
||||
{
|
||||
this.capacity *= 2;
|
||||
this.elems = mem::realloc(this.elems, $sizeof(Type) * this.capacity);
|
||||
this.elems = mem::realloc(this.elems, Type.sizeof * this.capacity);
|
||||
}
|
||||
this.elems[this.size++] = element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user