-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set cap more carefully on unsafe slices
Treating a pointer as a pointer to a large array of bytes, or converting back the other way, isn't totally insane, but it does create slices with an extremely large cap. This bit me while I was trying to build the 16-byte packed Container structure, but it's probably actually worth fixing in general.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters