We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 679efbb commit abbe448Copy full SHA for abbe448
Include/cpython/unicodeobject.h
@@ -231,7 +231,7 @@ enum PyUnicode_Kind {
231
// new compiler warnings on "kind < PyUnicode_KIND(str)" (compare signed and
232
// unsigned numbers) where kind type is an int or on
233
// "unsigned int kind = PyUnicode_KIND(str)" (cast signed to unsigned).
234
-#define PyUnicode_KIND(op) (_PyASCIIObject_CAST(op)->state.kind)
+#define PyUnicode_KIND(op) _Py_RVALUE(_PyASCIIObject_CAST(op)->state.kind)
235
236
/* Return a void pointer to the raw unicode buffer. */
237
static inline void* _PyUnicode_COMPACT_DATA(PyObject *op) {
0 commit comments