Merge pull request #151 from stgraber/v2
util/container: Fix 32bit support
Christian Brauner authored 3 years ago
GitHub committed 3 years ago
294 | 294 | return nil, ErrNoSnapshot |
295 | 295 | } |
296 | 296 | |
297 | gosnapshots := (*[1 << 30]C.struct_lxc_snapshot)(unsafe.Pointer(csnapshots))[:size:size] | |
297 | gosnapshots := (*[(1 << 30) - 1]C.struct_lxc_snapshot)(unsafe.Pointer(csnapshots))[:size:size] | |
298 | 298 | snapshots := make([]Snapshot, size, size) |
299 | 299 | for i := 0; i < size; i++ { |
300 | 300 | snapshots[i] = Snapshot{ |