From dd2637fabc8df2d0d76ccab755ca3e949e7c1176 Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Mon, 8 May 2023 17:29:22 +0800 Subject: [PATCH] Update pocketpy.h --- src/pocketpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketpy.h b/src/pocketpy.h index ea9c5227..43f597ad 100644 --- a/src/pocketpy.h +++ b/src/pocketpy.h @@ -181,7 +181,7 @@ inline void init_builtins(VM* _vm) { _vm->bind_builtin_func<1>("dir", [](VM* vm, ArgsView args) { std::set names; - if(!is_tagged(args[0] && args[0]->is_attr_valid()){ + if(!is_tagged(args[0]) && args[0]->is_attr_valid()){ std::vector keys = args[0]->attr().keys(); names.insert(keys.begin(), keys.end()); }