aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-06-21 22:50:29 +0100
committergingerBill <bill@gingerbill.org>2019-06-21 22:50:29 +0100
commitaaa24894b68f2d3095b85b8df2b39031b0e76549 (patch)
tree21e5bdb30c257a99a919cca3385529881aeecd76 /src/check_expr.cpp
parent2af19c496e4fa1c01ea218df16d8162307d8419d (diff)
Fix double-pointer indexing bug #396
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 2cb462b9a..dc6d43d52 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -5773,9 +5773,7 @@ void check_set_mode_with_indirection(Operand *o, bool indirection) {
}
}
-bool check_set_index_data(Operand *o, Type *type, bool indirection, i64 *max_count) {
- Type *t = base_type(type_deref(type));
-
+bool check_set_index_data(Operand *o, Type *t, bool indirection, i64 *max_count) {
switch (t->kind) {
case Type_Basic:
if (t->Basic.kind == Basic_string) {