Commit
26 days ago
gh-41314: Make several parts of the code base const-correct about `gsl_rng_type`: reading gsl's source code, we see that the objects are declared with `const`. Therefore, the type declaration in the pxd file need to be adapted. About `mpz_srcptr`: this is just `mpz_struct const*`, while `mpz_t` in this context is just `mpz_struct*`. Since the functions does not modify the input argument anyway, it is better to make the argument const so that they are correctly usable in more places. ### :memo: Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### :hourglass: Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: https://github.com/sagemath/sage/pull/41314 Reported by: user202729 Reviewer(s):
Author
Release Manager
Loading