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

libcontainer: devices: fix mips builds #1824

Merged
merged 1 commit into from
Jun 25, 2018
Merged

libcontainer: devices: fix mips builds #1824

merged 1 commit into from
Jun 25, 2018

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented Jun 17, 2018

It turns out that MIPS uses uint32 in the device number returned by
stat(2), so explicitly wrap everything to make the compiler happy. I
really wish that Go had C-like numeric type promotion.

Fixes #1823
Signed-off-by: Aleksa Sarai asarai@suse.de

It turns out that MIPS uses uint32 in the device number returned by
stat(2), so explicitly wrap everything to make the compiler happy. I
really wish that Go had C-like numeric type promotion.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@onlyjob
Copy link
Contributor

onlyjob commented Jun 18, 2018

Excellent, thanks.

@dqminh
Copy link
Contributor

dqminh commented Jun 23, 2018

LGTM.

This is the same as https://github.com/opencontainers/runc/pull/1769/files

Approved with PullApprove

@crosbymichael
Copy link
Member

LGTM

@crosbymichael crosbymichael merged commit 2c632d1 into opencontainers:master Jun 25, 2018
@cyphar cyphar deleted the fix-mips-build-devNumber branch June 25, 2018 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants