# stage2 DWARF: fix size and offset in slices · gitcafe/zig

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

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

Visibility: public

Requested revision: b300eecb9da8f9ea0baffe737eb595df3c12381f

Requested commit: b300eecb9da8f9ea0baffe737eb595df3c12381f

Commit: b300eecb9da8f9ea0baffe737eb595df3c12381f

Tree: 1426afec8981cb47ff79683e7018e977c1bdc896

Author: joachimschmidt557

Committer: Andrew Kelley

## Message

```
stage2 DWARF: fix size and offset in slices

Previously, `@sizeOf(usize)` was used, however, the pointer size of
the host may differ from the target when cross-compiling.

```

## Parents

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

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