Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change type of zed.nativeBase for Go 1.21
Unlike previous releases, Go 1.21 assigns zed.nativeBase (a struct{} occupying zero bytes) the same address as runtime.zerobase, causing panics because zed.decodeNative now mistakes a zed.Value with a bytes field containing a zero-capacity slice for a native value. Fix by changing the type of nativeBase to uintptr, which does not occupy zero bytes. Closes #4764.
- Loading branch information