Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reflect: fix Value.Index() in a specific case
In the case where: - Value.Index() was called on an array - that array was bigger than a pointer - the element type fits in a pointer - the 'indirect' flag isn't set the Value.Index() method would still (incorrectly) load the value. This commit fixes that. The next commit adds a test which would have triggered this bug so works as a regression test.
- Loading branch information