Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx> --- smatch_type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_type.c b/smatch_type.c index 0fa61725..9080ce62 100644 --- a/smatch_type.c +++ b/smatch_type.c @@ -255,6 +255,8 @@ struct symbol *get_type(struct expression *expr) ret = get_real_base_type(expr->cast_type); break; case EXPR_COMPARE: + ret = &int_ctype; + break; case EXPR_BINOP: ret = get_binop_type(expr); break; -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe smatch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html