From 1a1e46e2252f91d50ca74561fa1325d650313423 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 7 Mar 2021 18:49:56 +0100 Subject: [PATCH] :art: Minor fixes --- examples/ptr_assign_class.gw | 2 +- src/clean.c | 2 +- src/lib/array.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/ptr_assign_class.gw b/examples/ptr_assign_class.gw index 5b560f28..9b73e8a5 100644 --- a/examples/ptr_assign_class.gw +++ b/examples/ptr_assign_class.gw @@ -2,7 +2,7 @@ class C { funcdef void Test(); fun void test1(){}; var Test test0; - <<< test1 => test0 >>>; + <<< test1 @=> test0 >>>; } var C c; diff --git a/src/clean.c b/src/clean.c index f9d92cab..148e412a 100644 --- a/src/clean.c +++ b/src/clean.c @@ -280,7 +280,7 @@ ANN static void clean_func_base(Clean *a, Func_Base *b) { ANN static void clean_func_def(Clean *a, Func_Def b) { clean_func_base(a, b->base); ++a->scope; - if(b->d.code && !(b->base->func && vflag(b->base->func->value_ref, vflag_builtin))) + if(b->d.code && !(b->base->func && safe_vflag(b->base->func->value_ref, vflag_builtin))) clean_stmt(a, b->d.code); else b->d.code = NULL; diff --git a/src/lib/array.c b/src/lib/array.c index 9670b012..b0d4172b 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -161,7 +161,6 @@ static MFUN(vm_vector_insert_struct) { } static MFUN(vm_vector_size) { -printf("[%s] %p %p\n", __func__, o, ARRAY(o)); *(m_uint*)RETURN = ARRAY_LEN(ARRAY(o)); } -- 2.43.0