mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 06:05:00 -07:00
Modify type_set_offsets to patch minor bug
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user