From 68582c5ad1b2bf562242b9d2f40c89efad343b66 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 17 Sep 2019 19:47:04 +0100 Subject: Add suggestions to errors on casts and assignments. --- src/check_decl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 173ba4a90..166b6e715 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -112,7 +112,8 @@ void check_init_variables(CheckerContext *ctx, Entity **lhs, isize lhs_count, Ar isize rhs_count = operands.count; for_array(i, operands) { if (operands[i].mode == Addressing_Invalid) { - rhs_count--; + // TODO(bill): Should I ignore invalid parameters? + // rhs_count--; } } -- cgit v1.2.3