mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Build fix for 32-bit systems.
* Fixes #3664. Signed-off-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
@ -86,7 +86,8 @@ func getMemLimit(cgroupLimit uint64) uint64 {
|
||||
return cgroupLimit
|
||||
}
|
||||
|
||||
physicalLimit := si.Totalram
|
||||
//nolint:unconvert
|
||||
physicalLimit := uint64(si.Totalram)
|
||||
if cgroupLimit > physicalLimit {
|
||||
return physicalLimit
|
||||
}
|
||||
|
Reference in New Issue
Block a user