Skip to content

Commit 663659e

Browse files
authored
Parse PYTHON_LLTRACE as an integer
1 parent d0c7ac3 commit 663659e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ maybe_lltrace_resume_frame(_PyInterpreterFrame *frame, PyObject *globals)
298298
// Can also be controlled by environment variable
299299
char *python_lltrace = Py_GETENV("PYTHON_LLTRACE");
300300
if (python_lltrace != NULL && *python_lltrace >= '0') {
301-
lltrace = *python_lltrace - '0'; // TODO: Parse an int and all that
301+
lltrace = atoi(python_lltrace);
302302
}
303303
}
304304
if (lltrace >= 5) {

0 commit comments

Comments
 (0)