From: Jérémie Astor Date: Sun, 7 Mar 2021 17:49:56 +0000 (+0100) Subject: :art: Minor fixes X-Git-Tag: nightly~894 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1a1e46e2252f91d50ca74561fa1325d650313423;p=gwion.git :art: Minor fixes --- 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)); }