Commit db3348c
fix: FreeBSD cross-compile type mismatch in diskspace_unix.go
Cast Statfs_t fields (Blocks, Bavail, Bfree) through uint64() for
FreeBSD where they are int64, not uint64 as on Linux/Darwin. Suppress
unconvert lint warnings since the linter runs on Linux where the casts
appear redundant.
Fixes TestCrossPlatformBuild/freebsd_amd64.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 71ca4a7 commit db3348c
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments