ortuman / nuke

⚡ A memory arena implementation for Go.
Apache License 2.0
500 stars 13 forks source link

fix allocated memory misalignment #17

Closed ortuman closed 8 months ago

ortuman commented 8 months ago

This PR adds the alignment parameter to the Alloc method of the Arena interface, aiming to ensure that the pointer returned by this method is aligned with this value.

Fixes: https://github.com/ortuman/nuke/issues/16