1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Merge pull request '[CHORE] Fix darwin compatibility' (#4906) from gusted/forgejo-os-compile into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4906
Reviewed-by: Caesar Schinas <caesar@caesarschinas.com>
This commit is contained in:
Gusted 2024-08-09 17:33:47 +00:00
commit 0f7a98d34d

View file

@ -39,7 +39,9 @@ func fileStatDevIno(file *os.File) (uint64, uint64, bool) {
return 0, 0, false
}
return stat.Dev, stat.Ino, true
// Do a type conversion to uint64, because Dev isn't always uint64
// on every operating system + architecture combination.
return uint64(stat.Dev), stat.Ino, true //nolint:unconvert
}
func fileIsDevIno(file *os.File, dev, ino uint64) bool {