Correct core library usage of the new mem.new behaviour

This commit is contained in:
gingerBill
2021-08-23 19:29:01 +01:00
parent 382ca20916
commit ce7698c20e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import "core:fmt"
import "core:odin/tokenizer"
new :: proc($T: typeid, pos, end: tokenizer.Pos) -> ^T {
n := mem.new(T);
n, _ := mem.new(T);
n.pos = pos;
n.end = end;
n.derived = n^;