aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/vectors.tm2
-rw-r--r--tomo.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/vectors.tm b/examples/vectors.tm
index 64aa3295..cee0f305 100644
--- a/examples/vectors.tm
+++ b/examples/vectors.tm
@@ -94,6 +94,4 @@ func main():
= Vec2(x=110, y=120)
>> Vec3(10, 20, 30)
>> Vec2.ZERO
- >> Vec2.ZERO.x = 99
- >> Vec2.ZERO
diff --git a/tomo.c b/tomo.c
index 5a2216a8..ac3b828d 100644
--- a/tomo.c
+++ b/tomo.c
@@ -213,11 +213,11 @@ int main(int argc, char *argv[])
if (!ast) errx(1, "Could not parse file %s", filename);
env_t *module_env = load_module_env(env, ast);
for (ast_list_t *stmt = Match(ast, Block)->statements; stmt; stmt = stmt->next) {
- CORD h = compile_statement_typedefs(&module_env, stmt->ast);
+ CORD h = compile_statement_typedefs(module_env, stmt->ast);
if (h) CORD_put(h, header_prog);
}
for (ast_list_t *stmt = Match(ast, Block)->statements; stmt; stmt = stmt->next) {
- CORD h = compile_statement_definitions(&module_env, stmt->ast);
+ CORD h = compile_statement_definitions(module_env, stmt->ast);
if (h) CORD_put(h, header_prog);
}
fprintf(header_prog, "void %s$%s$$initialize(void);\n", libname, file_base_name(filename));