# fix wrong value for clz, ctz at compile time · gitcafe/zig

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

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

Visibility: public

Requested revision: 0d117bb0a993b2a0a290f99255c5bf1bf05f187f

Requested commit: 0d117bb0a993b2a0a290f99255c5bf1bf05f187f

Commit: 0d117bb0a993b2a0a290f99255c5bf1bf05f187f

Tree: 54abbc90bb6c31746eb0d9b1c8a3269395190900

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix wrong value for clz, ctz at compile time

closes #418

also make clz, ctz return smaller integer bit widths
and use smaller integer bit widths for enum tag types

```

## Parents

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

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