# fix wrong switch target type with enum from \.h file · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b8f98a52c64301ae5bfc83936434af6c88d77d7

Requested commit: 2b8f98a52c64301ae5bfc83936434af6c88d77d7

Commit: 2b8f98a52c64301ae5bfc83936434af6c88d77d7

Tree: 4ffbaad805fe8c4f4d66958a09b1c56a57043252

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix wrong switch target type with enum from .h file

fixes crash when else => unreachable is missing

```

## Parents

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

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