summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index 0cb1a188a3..4e28eeb57e 100644
--- a/src/object.c
+++ b/src/object.c
@@ -429,7 +429,7 @@ void rt_object_detach(rt_object_t object)
rt_list_remove(&(object->list));
rt_spin_unlock_irqrestore(&(information->spinlock), level);
- object->type = 0;
+ object->type = RT_Object_Class_Null;
}
#ifdef RT_USING_HEAP