diff options
author | Guido van Rossum <guido@python.org> | 2007-06-14 00:28:01 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-14 00:28:01 +0000 |
commit | 89cef26248adfa52add445a19473a988150f1ca1 (patch) | |
tree | 745697b2564c802950a79805b568fc046207ceee /Python/compile.c | |
parent | 5c53e6081cd922f69c56028adebb3f5ae3e08c88 (diff) | |
download | cpython-89cef26248adfa52add445a19473a988150f1ca1.tar.gz |
Looks like an oopsie -- I ignored a warning at my peril.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 0f5fd2dfde..cbb6b4d61a 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2972,7 +2972,8 @@ expr_constant(expr_ty e) return PyObject_IsTrue(e->v.Str.s); case Name_kind: /* optimize away names that can't be reassigned */ - id = _PyUnicode_AsDefaultEncodedString(e->v.Name.id, NULL); + id = PyString_AS_STRING( + _PyUnicode_AsDefaultEncodedString(e->v.Name.id, NULL)); if (strcmp(id, "True") == 0) return 1; if (strcmp(id, "False") == 0) return 0; if (strcmp(id, "None") == 0) return 0; |