# fixups for the previous commit · gitcafe/zig

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

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

Visibility: public

Requested revision: b2b0bf0506e708e6b8c143eb438a84592310b5a9

Requested commit: b2b0bf0506e708e6b8c143eb438a84592310b5a9

Commit: b2b0bf0506e708e6b8c143eb438a84592310b5a9

Tree: 28b7a8997249dafa8b1171e789fbb0dfce2a9d56

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fixups for the previous commit

 * std.fs.File.copyRange and copyRangeAll return u64 instead of usize -
   the returned value is how much of the `len` is transferred, so the
   types should match. This removes the need for an `@intCast`.
 * fix typo that removed a subtraction
 * Fix the size of codegen.AnyMCValue which gave me a compile error when
   I tried to build self-hosted for i386-linux.
 * restore the coercion to u64 of syms_sect.sh_info. We want to make
   sure the multiplication happens with 64 bits and not the smaller type
   used by the ELF format.
 * fix another offset parameter in link/Elf.zig to be u64 instead of usize
 * add a nice little TODO note to help out Jakub
 * FmtError already has FileTooBig in it; we just need to return it.

```

## Parents

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

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