summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 25e8198e..05927cb9 100644
--- a/lib.c
+++ b/lib.c
@@ -141,7 +141,7 @@ obj_t *type_check2(obj_t *obj, int t1, int t2)
obj_t *type_check3(obj_t *obj, int t1, int t2, int t3)
{
- if (!is_ptr(obj) || (obj->t.type != t1 && obj->t.type != t2
+ if (!is_ptr(obj) || (obj->t.type != t1 && obj->t.type != t2
&& obj->t.type != t3))
type_mismatch(L"~s is not of type ~s, ~s nor ~s", obj,
code2type(t1), code2type(t2), code2type(t3), nao);