##// END OF EJS Templates
dirs: document Py_SIZE weirdness...
Gregory Szorc -
r30159:fb5504d7 default
parent child Browse files
Show More
@@ -76,6 +76,8 b' static int _addpath(PyObject *dirs, PyOb'
76 if (key == NULL)
76 if (key == NULL)
77 goto bail;
77 goto bail;
78 }
78 }
79 /* Py_SIZE(o) refers to the ob_size member of the struct. Yes,
80 * assigning to what looks like a function seems wrong. */
79 Py_SIZE(key) = pos;
81 Py_SIZE(key) = pos;
80 ((PyBytesObject *)key)->ob_sval[pos] = '\0';
82 ((PyBytesObject *)key)->ob_sval[pos] = '\0';
81
83
General Comments 0
You need to be logged in to leave comments. Login now