Codebase list golang-gopkg-lxc-go-lxc.v2 / 354b230
Merge pull request #151 from stgraber/v2 util/container: Fix 32bit support Christian Brauner authored 3 years ago GitHub committed 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
294294 return nil, ErrNoSnapshot
295295 }
296296
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]
298298 snapshots := make([]Snapshot, size, size)
299299 for i := 0; i < size; i++ {
300300 snapshots[i] = Snapshot{
8080 return nil
8181 }
8282
83 tmpslice := (*[1 << 30]*C.char)(unsafe.Pointer(cArgs))[:size:size]
83 tmpslice := (*[(1 << 29) - 1]*C.char)(unsafe.Pointer(cArgs))[:size:size]
8484 result := make([]string, size)
8585 for i, s := range tmpslice {
8686 result[i] = C.GoString(s)