Commit a7f0089f authored by Niels Möller's avatar Niels Möller

* src/xalloc.h (CHECK_TYPE) [!DEBUG_ALLOC]: Cast to (struct

lsh_object *).
(CHECK_SUBTYPE) [!DEBUG_ALLOC]: Likewise. XXX: Fix in main branch.

Rev: src/xalloc.h:1.21.2.1
parent 6a0b2c74
......@@ -79,8 +79,8 @@ struct lsh_object *lsh_object_check_subtype(struct lsh_class *class,
#else /* !DEBUG_ALLOC */
#define CHECK_TYPE(c, o) o
#define CHECK_SUBTYPE(c, o) o
#define CHECK_TYPE(c, o) ((struct lsh_object *) (o))
#define CHECK_SUBTYPE(c, o) ((struct lsh_object *) (o))
#define CAST(class, var, o) \
struct class *(var) = (struct class *) (o)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment