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")); }