Browse Source

fix a bug

blueloveTH 3 years ago
parent
commit
7329c4288d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/vm.h

+ 1 - 1
src/vm.h

@@ -1080,7 +1080,7 @@ public:
             ThreadedVM *tvm = dynamic_cast<ThreadedVM*>(vm);
             ThreadedVM *tvm = dynamic_cast<ThreadedVM*>(vm);
             if(tvm == nullptr) UNREACHABLE();
             if(tvm == nullptr) UNREACHABLE();
             tvm->__checkArgSize(args, 1);
             tvm->__checkArgSize(args, 1);
-            tvm->__checkType(args[0], vm->_types["dict"_c]);
+            tvm->__checkType(args[0], vm->builtins->attribs["dict"_c]);
             return tvm->jsonRpc(args[0]);
             return tvm->jsonRpc(args[0]);
         });
         });