Fix of $sizeof(Type) => Type.sizeof

This commit is contained in:
Christoffer Lerno
2022-07-07 15:51:40 +02:00
parent bb020a1752
commit cfbfc29e84

View File

@@ -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;
}