summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-04-21 07:39:17 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-04-21 07:39:28 +0200
commit3a3726c3ab531bcfc2560f2529753d0b98f8aae3 (patch)
tree2a77f3573bae5d6693281b95f1748c627dba34da
parentccf1769f5426b0dc66a7b32e29a5f9617ce3ddf5 (diff)
downloadcython-3a3726c3ab531bcfc2560f2529753d0b98f8aae3.tar.gz
Try if we can avoid a C compiler warning in clang for a constant strchr() call.
-rw-r--r--Cython/Utility/ImportExport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ImportExport.c b/Cython/Utility/ImportExport.c
index 23c4dad37..a21038748 100644
--- a/Cython/Utility/ImportExport.c
+++ b/Cython/Utility/ImportExport.c
@@ -180,7 +180,7 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
{
#if PY_MAJOR_VERSION >= 3
if (level == -1) {
- if (strchr(__Pyx_MODULE_NAME, '.')) {
+ if ((strchr(__Pyx_MODULE_NAME, '.'))) {
/* try package relative import first */
#if CYTHON_COMPILING_IN_LIMITED_API
module = PyImport_ImportModuleLevelObject(