# breaking: fix @sizeOf to be alloc size rather than store size · gitcafe/zig

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

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

Visibility: public

Requested revision: 7293e012d7956b892380517e914108ffadc6941b

Requested commit: 7293e012d7956b892380517e914108ffadc6941b

Commit: 7293e012d7956b892380517e914108ffadc6941b

Tree: 420049c2174484e2c536d2e36b5b1bb906b921b3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
breaking: fix @sizeOf to be alloc size rather than store size

 * Fixes breaches of the guarantee that `@sizeOf(T) >= @alignOf(T)`
 * Fixes std.mem.secureZero for integers where this guarantee previously
   was breached
 * Fixes std.mem.Allocator for integers where this guarantee previously
   was breached

Closes #1851
Closes #1864

```

## Parents

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

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