# fix dereferencing a zero bit type · gitcafe/zig

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

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

Visibility: public

Requested revision: 83390bdfdde211a73be42e16a41cd2102c429bbd

Requested commit: 83390bdfdde211a73be42e16a41cd2102c429bbd

Commit: 83390bdfdde211a73be42e16a41cd2102c429bbd

Tree: 17854868d8d75183e653f9ab630f5c8569215ec3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix dereferencing a zero bit type

Before only u0 was special cased in handling a dereference;
now all zero bit types are handled the same way. Dereferencing
a pointer to a zero bit type always gives a comptime-known
result.

This previously had been failing on master branch but went unnoticed
because until 846f72b57cb5 the CI server was mistakenly not actually
running the single-threaded tests with --single-threaded.

This fixes the standard library tests with --single-threaded
--release-fast.

```

## Parents

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

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