Skip to content

Commit c012af0

Browse files
committed
common/fdlimit: Fix compilation error in freebsd, Raise returns uint64 (ethereum#19141)
1 parent be2d40b commit c012af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/fdlimit/fdlimit_freebsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func Raise(max uint64) (uint64, error) {
4444
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &limit); err != nil {
4545
return 0, err
4646
}
47-
return limit.Cur, nil
47+
return uint64(limit.Cur), nil
4848
}
4949

5050
// Current retrieves the number of file descriptors allowed to be opened by this

0 commit comments

Comments
 (0)