Make core:odin use a string for the source rather than []byte
This commit is contained in:
1 parent
ce08e832f7
commit
df3512b112
3 files changed
+5
-5
No files matched your search
@@ -39,7 +39,7 @@ collect_package :: proc(path: string) -> (pkg: ^ast.Package, success: bool) {
|
||||
}
|
||||
file := ast.new(ast.File, NO_POS, NO_POS);
|
||||
file.pkg = pkg;
|
||||
file.src = src;
|
||||
file.src = string(src);
|
||||
file.fullpath = fullpath;
|
||||
pkg.files[fullpath] = file;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user