# Fix array\-\>vector and vector\-\>array for many types\. Allow vector of bool\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 0e3ca4c63ecb8e43af8261020d21bc6888d18fc0

Requested commit: 0e3ca4c63ecb8e43af8261020d21bc6888d18fc0

Commit: 0e3ca4c63ecb8e43af8261020d21bc6888d18fc0

Tree: 7df095fa7a25c68d3648a3d87eaa937ce3ead5a4

Author: Shawn Landden

Committer: Andrew Kelley

## Message

```
Fix array->vector and vector->array for many types. Allow vector of bool.

Vectors do not have the same packing as arrays, and just bitcasting
is not the correct way to convert them.

```

## Parents

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

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