# Fix long double on x86_64-windows · gitcafe/zig

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

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

Visibility: public

Requested revision: 4ecc384f99e5f4c5a320714484866fb48699245f

Requested commit: 4ecc384f99e5f4c5a320714484866fb48699245f

Commit: 4ecc384f99e5f4c5a320714484866fb48699245f

Tree: 3b520a0ef4fe06337a76bee353b70e9df51c46ab

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
Fix long double on x86_64-windows

The larger alignment on this platform means that long double reports
a sizeof 16 bytes, but it's underlying size is really just the 10
bytes of `f80`

C doesn't give us a way to see the "underlying" size of a type, so
this has to be caught by hand or by monitoring runtime memory. Luckily,
x86 and x86-64 are the only platforms that seem to use a non-power-of-two
type like this.

```

## Parents

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

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