# sema: fix result ptr coercion array \-\> vector · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0606f0aa5576122204886f1a3c9530c0ce75c044)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0606f0aa5576122204886f1a3c9530c0ce75c044

Requested commit: 0606f0aa5576122204886f1a3c9530c0ce75c044

Commit: 0606f0aa5576122204886f1a3c9530c0ce75c044

Tree: 8e1c9cf9b000a60d4f98aafeb318f6814bea52a7

Author: John Schmidt

Committer: John Schmidt

## Message

```
sema: fix result ptr coercion array -> vector

Previously this worked for array to vector where the element type
matched exactly (e.g `[4]u8` to `@Vector(4, u8)`) since that is
performed with a simple `.bitcast` operation, but now it also works for
types where the array is coercible to the vector type (e.g `[4]u8` to
`@Vector(4, u16)`).

```

## Parents

- [505e720421ce4f7ed11730fe68d32e3bba711f3c](https://git.cafe/gitcafe/zig/commit/505e720421ce4f7ed11730fe68d32e3bba711f3c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0606f0aa5576122204886f1a3c9530c0ce75c044?format=markdown)
