]> Nishi Git Mirror - gwion.git/commitdiff
:art: Test not object
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 14:01:26 +0000 (16:01 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 14:01:26 +0000 (16:01 +0200)
src/lib/opfunc.c
tests/tree/not_object.gw [new file with mode: 0644]

index 0765b0b4a6eba6ba6866e3f78660be34f49ea4a9..0b6045c726318f8d9904ce3168e87e122f3c9905 100644 (file)
@@ -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 (file)
index 0000000..f9837d8
--- /dev/null
@@ -0,0 +1,2 @@
+Object o;
+<<< !o >>>;