# linux/mips.zig: Use \`i32\` for stat nsec fields · gitcafe/zig

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

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

Visibility: public

Requested revision: caf80e90b85a2a7855c369887dce163cf036ff7e

Requested commit: caf80e90b85a2a7855c369887dce163cf036ff7e

Commit: caf80e90b85a2a7855c369887dce163cf036ff7e

Tree: 5d2ad98a6f87b5fdfcbad5adeffc9e39cbe08fd4

Author: Pat Tullmann

Committer: Pat Tullmann

## Message

```
linux/mips.zig: Use `i32` for stat nsec fields

The `atime()`, etc wrappers here expect to create a `std.linux.timespec`
(defined in `linux.zig` to have `isize` fields), so the u32 causes errors:

   error: expected type 'isize', found 'u32'
   .nsec = self.atim_nsec,

Make the nsec fields signed for consistency with all the other structs,
with and with `std.linux.timespec`.

Also looks like the comment on `__pad1` was copied from `__pad0`, but it
only applies to `__pad0`.

```

## Parents

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

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