Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed strict aliasing violation. #3

Closed
wants to merge 1 commit into from
Closed

Fixed strict aliasing violation. #3

wants to merge 1 commit into from

Conversation

aligature
Copy link
Contributor

Changed C-style cast and dereference to std::memcpy. Exactly mirrors other code already in the file.

Changed C-style cast and dereference to std::memcpy.  Exactly mirrors other code already in the file.
@danieljames
Copy link
Collaborator

I'm going to merge this by rebasing onto develop, so it won't appear here. Although I don't really like the existing code much, someone else wrote it. I'm not sure if there's a better way though. I suppose std::memcpy can have a compiler specific implementation if it needs to, so it can solve problems that we can't.

@danieljames danieljames closed this Jan 5, 2015
@danieljames
Copy link
Collaborator

It's in commit d5dc503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants