Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of unsafe.Slice: Use unsafe.SliceData
Since reflect.SliceHeader is deprecated we switched to using unsafe.Slice. However we used data[0] as the pointer to the data of the slice. Which worked until the data array was nil. This changes that to use unsafe.SliceData instead which hedges against an empty slice
- Loading branch information