Skip to content

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 [email protected]

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 <[email protected]>
@onlyjob
Copy link
Contributor

onlyjob commented Jun 18, 2018

Excellent, thanks.

@dqminh
Copy link
Contributor

dqminh commented Jun 23, 2018

@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
chenx97 added a commit to chenx97/runc that referenced this pull request Apr 10, 2025
Similar to opencontainers#1824, we need to explicitly convert the
device number to uint64 for mips.

Signed-off-by: Henry Chen <[email protected]>
chenx97 added a commit to chenx97/runc that referenced this pull request Apr 10, 2025
Similar to opencontainers#1824, we need to convert the device number to uint64 for
mips.

Signed-off-by: Henry Chen <[email protected]>
MingcongBai pushed a commit to AOSC-Tracking/runc that referenced this pull request Apr 10, 2025
Similar to opencontainers#1824, we need to convert the device number to uint64 for
mips.

Signed-off-by: Henry Chen <[email protected]>
prcups pushed a commit to AOSC-Tracking/runc that referenced this pull request Sep 15, 2025
Similar to opencontainers#1824, we need to convert the device number to uint64 for
mips.

Signed-off-by: Henry Chen <[email protected]>
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