# Fix Compiler Error When Using wWinMain Entry-Point · gitcafe/zig

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

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

Visibility: public

Requested revision: 79ec08fe2f06f30f1759cb1f94e3ea162309e79b

Requested commit: 79ec08fe2f06f30f1759cb1f94e3ea162309e79b

Commit: 79ec08fe2f06f30f1759cb1f94e3ea162309e79b

Tree: 85c5c76d41f4238f210166b9500afa8140646918

Author: DixiE

Committer: Andrew Kelley

## Message

```
Fix Compiler Error When Using wWinMain Entry-Point

The fix for #6715 introduced a new compiler error when attempting to use
wWinMain as the application entry-point.

The Windows API often relies on implicit casts between signed and
unsigned variables. In this case, wWinMain returns an INT despite the
fact this value is intended to feed into ExitProcess, which expects a
UINT, so I've restored the bitcast from #5613.

```

## Parents

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

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