Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix constant int overflow for GOARCH=386 #1683

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

saschagrunert
Copy link
Member

What type of PR is this?

/kind bug

What this PR does / why we need it:

Fixing the build for:

> GOARCH=386 go build ./...
pkg/client/remote_fds.go:101:15: invalid operation: numFDs == int64(1) << int64(numFDsBits) (mismatched types int and int64)

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

Fixed constant int overflow for `GOARCH=386`.

Fixing the build for:

```
> GOARCH=386 go build ./...
pkg/client/remote_fds.go:101:15: invalid operation: numFDs == int64(1) << int64(numFDsBits) (mismatched types int and int64)
```

Signed-off-by: Sascha Grunert <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 11, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This was referenced Sep 11, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1683 (6b4d9aa) into main (7e3a19f) will increase coverage by 0.69%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1683      +/-   ##
==========================================
+ Coverage   34.92%   35.62%   +0.69%     
==========================================
  Files          13       13              
  Lines        1151     1151              
  Branches      370      370              
==========================================
+ Hits          402      410       +8     
+ Misses        520      505      -15     
- Partials      229      236       +7     

@saschagrunert
Copy link
Member Author

@rphillips @haircommander PTAL

@haircommander
Copy link
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 12, 2023
@openshift-merge-robot openshift-merge-robot merged commit 7ed7427 into containers:main Sep 12, 2023
12 checks passed
@saschagrunert saschagrunert deleted the overflow branch September 12, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants