aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-04-28 20:34:51 +0100
committergingerBill <bill@gingerbill.org>2019-04-28 20:34:51 +0100
commitc61fd3a70ad3d98152939321bd1a33a57a85d559 (patch)
tree0cd8f76ff264600bedfb275b254e155f56c0a933 /src/check_type.cpp
parent45fbc4e8c53b4a2e6ddeeaf361f1c5cc7846d6f8 (diff)
Modify type_set_offsets to patch minor bug
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 445b93fb8..f9f45361e 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2442,7 +2442,7 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
case_end;
case_ast_node(ot, OpaqueType, e);
- Type *elem = strip_opaque_type(check_type(ctx, ot->type));
+ Type *elem = strip_opaque_type(check_type_expr(ctx, ot->type, nullptr));
*type = alloc_type_opaque(elem);
set_base_type(named_type, *type);
return true;