Remove Py_SSIZE2SIZE to quiet cppcheck warnings.

Tuple size cannot be negative and we already handle the case where
it is zero.
This commit is contained in:
Todd C. Miller
2021-01-26 11:33:06 -07:00
parent 19d5845f8b
commit bca213959b
4 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,6 @@ struct PythonContext
extern struct PythonContext py_ctx;
#define Py_TYPENAME(object) (object ? Py_TYPE(object)->tp_name : "NULL")
#define Py_SSIZE2SIZE(value) ((value) < 0 ? 0 : (size_t)(value))
#define py_sudo_log(...) py_ctx.sudo_log(__VA_ARGS__)