- allow '-' for s and S format
[cparser] / type_t.h
index 894270d..becc8a0 100644 (file)
--- a/type_t.h
+++ b/type_t.h
@@ -262,6 +262,7 @@ static inline bool is_type_compound(const type_t *type)
 
 static inline bool is_type_valid(const type_t *type)
 {
+       assert(!is_typeref(type));
        return type->kind != TYPE_ERROR;
 }