Powered by Linux
[PATCH 2/3] smatch_type.c: comparison expressions always have type int — Semantic Matching Tool

[PATCH 2/3] smatch_type.c: comparison expressions always have type int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux