| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Make two pointers be const char *. This quiets a warning from -Wincompatible-pointer-types.
|
You can add const to WFILE.end, RFILE.ptr and RFILE.end. |
Sorry, something went wrong.
I'm glad to do that. I was trying to keep changes minimal, but I'll resubmit. |
Sorry, something went wrong.
There was a problem hiding this comment.
I have done more cleanup in #19236.
Sorry, something went wrong.
| if (wf.str != NULL) { | ||
| char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); | ||
| const char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); | ||
| if (wf.ptr - base > PY_SSIZE_T_MAX) { |
There was a problem hiding this comment.
It seems to me, that this condition is always false (see w_reserve()). So you can remove it.
Sorry, something went wrong.
| w_object(x, &wf); | ||
| w_clear_refs(&wf); | ||
| if (wf.str != NULL) { | ||
| char *base = PyBytes_AS_STRING((PyBytesObject *)wf.str); |
There was a problem hiding this comment.
AFAIK the cast to PyBytesObject * is not needed.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue39943