diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index a0908cf985..a58b07e6c5 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -18197,7 +18197,7 @@ fn resolvePeerTypes( convert_to_slice = false; - if (chosen_ty.childType().isConstPtr() and !candidate_ty.childType().isConstPtr()) + if (chosen_ty.isConstPtr() and !candidate_ty.isConstPtr()) seen_const = true; continue; @@ -18209,7 +18209,7 @@ fn resolvePeerTypes( chosen_ty_tag == .Pointer and chosen_ty.ptrSize() == .Many) { - if (candidate_ty.childType().isConstPtr() and !chosen_ty.childType().isConstPtr()) + if (candidate_ty.isConstPtr() and !chosen_ty.isConstPtr()) seen_const = true; continue; |
