[Python-checkins] r83991 - python/branches/py3k/Modules/getpath.c
victor.stinner
python-checkins at python.org
Sat Aug 14 02:07:14 CEST 2010
Author: victor.stinner
Date: Sat Aug 14 02:07:14 2010
New Revision: 83991
Log:
Kill a gcc warning introduced by r83988
Modified:
python/branches/py3k/Modules/getpath.c
Modified: python/branches/py3k/Modules/getpath.c
==============================================================================
--- python/branches/py3k/Modules/getpath.c (original)
+++ python/branches/py3k/Modules/getpath.c Sat Aug 14 02:07:14 2010
@@ -416,7 +416,8 @@
fclose(f);
decoded = PyUnicode_DecodeUTF8(buf, n, "surrogateescape");
if (decoded != NULL) {
- n = PyUnicode_AsWideChar(decoded, rel_builddir_path, MAXPATHLEN);
+ n = PyUnicode_AsWideChar((PyUnicodeObject*)decoded,
+ rel_builddir_path, MAXPATHLEN);
Py_DECREF(decoded);
if (n >= 0) {
rel_builddir_path[n] = L'\0';
More information about the Python-checkins
mailing list