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

Use bus_controller pointers instead of type punning #109

Merged
merged 1 commit into from
Oct 13, 2018

Conversation

pavelkryukov
Copy link
Contributor

@pavelkryukov pavelkryukov commented Oct 8, 2018

Maybe I miss something here, but why not to use bus_controller pointer instead of type punning? It seems to be much more safe, as one do not need to care that bus is the first pointer in component structure.

@tj90241 tj90241 merged commit 57209ee into n64dev:master Oct 13, 2018
@tj90241
Copy link
Collaborator

tj90241 commented Oct 13, 2018

I think this was just a missed refactoring opportunity carted over from an old version of the source - thanks!

@pavelkryukov pavelkryukov deleted the no-pun branch October 13, 2018 00:50
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