From c78275428f871c814e8e0d9ac13ffd3c86aa31ca Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 19 Jun 2023 15:24:09 +0800 Subject: [PATCH] ... --- src/vm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vm.h b/src/vm.h index 9e154af4..c8c6b3e6 100644 --- a/src/vm.h +++ b/src/vm.h @@ -1568,6 +1568,7 @@ inline void CodeObjectSerializer::write_object(VM *vm, PyObject *obj){ if(is_int(obj)) write_int(_CAST(i64, obj)); else if(is_float(obj)) write_float(_CAST(f64, obj)); else if(is_type(obj, vm->tp_str)) write_str(_CAST(Str&, obj)); + else if(is_type(obj, vm->tp_bool)) write_bool(_CAST(bool, obj)); else{ throw std::runtime_error(fmt(OBJ_NAME(vm->_t(obj)).escape(), " is not serializable")); }