From: fennecdjay Date: Tue, 8 Oct 2019 14:01:26 +0000 (+0200) Subject: :art: Test not object X-Git-Tag: nightly~2198^2~94 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=45293450dae9be9a56164e44fda0e28ed94113a9;p=gwion.git :art: Test not object --- diff --git a/src/lib/opfunc.c b/src/lib/opfunc.c index 0765b0b4..0b6045c7 100644 --- a/src/lib/opfunc.c +++ b/src/lib/opfunc.c @@ -66,7 +66,7 @@ OP_CHECK(opck_unary_meta) { OP_CHECK(opck_unary_meta2) { const Exp_Unary* unary = (Exp_Unary*)data; exp_self(unary)->meta = ae_meta_value; - return env->gwion->type[et_int]; + return env->gwion->type[et_bool]; } OP_CHECK(opck_unary) { diff --git a/tests/tree/not_object.gw b/tests/tree/not_object.gw new file mode 100644 index 00000000..f9837d88 --- /dev/null +++ b/tests/tree/not_object.gw @@ -0,0 +1,2 @@ +Object o; +<<< !o >>>;