| ... | @@ -19466,7 +19466,7 @@ fn fieldCallBind( | ... | @@ -19466,7 +19466,7 @@ fn fieldCallBind( |
| 19466 | | 19466 | |
| 19467 | const raw_ptr_src = src; // TODO better source location | 19467 | const raw_ptr_src = src; // TODO better source location |
| 19468 | const raw_ptr_ty = sema.typeOf(raw_ptr); | 19468 | const raw_ptr_ty = sema.typeOf(raw_ptr); |
| 19469 | const inner_ty = if (raw_ptr_ty.zigTypeTag() == .Pointer and raw_ptr_ty.ptrSize() == .One) | 19469 | const inner_ty = if (raw_ptr_ty.zigTypeTag() == .Pointer and (raw_ptr_ty.ptrSize() == .One or raw_ptr_ty.ptrSize() == .C)) |
| 19470 | raw_ptr_ty.childType() | 19470 | raw_ptr_ty.childType() |
| 19471 | else | 19471 | else |
| 19472 | return sema.fail(block, raw_ptr_src, "expected single pointer, found '{}'", .{raw_ptr_ty.fmt(sema.mod)}); | 19472 | return sema.fail(block, raw_ptr_src, "expected single pointer, found '{}'", .{raw_ptr_ty.fmt(sema.mod)}); |