# cbe: handle msvc struct casting quirk · gitcafe/zig

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

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

Visibility: public

Requested revision: 7225a0043e1d1c0e6f3a0ac2bf9fbe0d48354071

Requested commit: 7225a0043e1d1c0e6f3a0ac2bf9fbe0d48354071

Commit: 7225a0043e1d1c0e6f3a0ac2bf9fbe0d48354071

Tree: c5219d823d04300935e18594577a6aa6906cda58

Author: kcbanner

Committer: kcbanner

## Message

```
cbe: handle msvc struct casting quirk

MSVC can't explicitly cast a struct to a typedef of itself (ie. f128 to i128). Added a
set of macros to handle float casting, and to not produce a cast for this specific
case on MSVC. A better approach would probably be to know if the cast is redundant
and not do it.

```

## Parents

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

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