Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3926a9f

Browse filesBrowse files
juergenhoetzeldmitshur
authored andcommitted
internal/sysutil: Fix build error on FreeBSD due to Rlimit.Cur type mismatch. (#752)
Document why type conversion is necessary. Otherwise, it's not clear that it's neccessary, and we we wouldn't be able to catch breakage if it were removed.
1 parent 296de81 commit 3926a9f
Copy full SHA for 3926a9f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎internal/sysutil/sysutil.go

Copy file name to clipboardExpand all lines: internal/sysutil/sysutil.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import "golang.org/x/sys/unix"
99
func RlimitStack() (cur uint64, err error) {
1010
var r unix.Rlimit
1111
err = unix.Getrlimit(unix.RLIMIT_STACK, &r)
12-
return r.Cur, err
12+
return uint64(r.Cur), err // Type conversion because Cur is one of uint64, int64 depending on unix flavor.
1313
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.