mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #4822
This commit is contained in:
@@ -2576,8 +2576,8 @@ gb_internal lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValu
|
|||||||
}
|
}
|
||||||
case BuiltinProc_ptr_sub:
|
case BuiltinProc_ptr_sub:
|
||||||
{
|
{
|
||||||
Type *elem0 = type_deref(type_of_expr(ce->args[0]));
|
Type *elem0 = type_deref(type_of_expr(ce->args[0]), true);
|
||||||
Type *elem1 = type_deref(type_of_expr(ce->args[1]));
|
Type *elem1 = type_deref(type_of_expr(ce->args[1]), true);
|
||||||
GB_ASSERT(are_types_identical(elem0, elem1));
|
GB_ASSERT(are_types_identical(elem0, elem1));
|
||||||
Type *elem = elem0;
|
Type *elem = elem0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user