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

[DO NOT MERGE] Do not avoid copying array content for const ** arrays. Do that for * consts. #777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 2, 2024

  1. Do not avoid copying array content for const ** arrays. Do that for `…

    …* const`s.
    
    This fixes bytedeco#776
    
    Before this change, we did not copy array contents back to the argument array
    for "const **" as it is regarded as immutable. But it in fact it mutable.
    This StackOverflow question describes it well.
    https://stackoverflow.com/questions/4949254/const-char-const-versus-const-char
    
    After this change, it will avoid copying if the parameter pointer itself is
    const.
    atsushieno committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    7b8944a View commit details
    Browse the repository at this point in the history