mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510)
This commit is contained in:
parent
a9edf44a2d
commit
7386a70746
4 changed files with 5 additions and 5 deletions
|
@ -475,7 +475,7 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno, void *Py_UNUSED(ignore
|
|||
if (new_stack.depth > current_stack.depth ||
|
||||
top_block(&new_stack)->start_line != current_block_at_new_depth->start_line) {
|
||||
unsigned char target_kind = top_block(&new_stack)->kind;
|
||||
char *msg;
|
||||
const char *msg;
|
||||
if (target_kind == POP_EXCEPT) {
|
||||
msg = "can't jump into an 'except' block as there's no exception";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue