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 memcpy instead of *(int)*& #115

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Use memcpy instead of *(int)*& #115

wants to merge 1 commit into from

Commits on Aug 8, 2021

  1. Use memcpy instead of *(int)*&

    The issues with  `*(int)*&` are that
    - It is quite confusing (especially for C++ beginners)
    - In this case, it is a strict aliasing violation
    
    A solution can therefore be to replace it with `memcpy`
    
    _This PR comes after a question I asked on [StackOverflow](https://stackoverflow.com/questions/68699806/strange-c-type-casting)_
    Garfield1002 authored Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3a1c8e5 View commit details
    Browse the repository at this point in the history