diff options
-rw-r--r-- | numpy/core/src/multiarray/common.c | 2 | ||||
-rw-r--r-- | numpy/core/src/multiarray/descriptor.c | 2 | ||||
-rw-r--r-- | numpy/core/src/multiarray/scalarapi.c | 4 | ||||
-rw-r--r-- | numpy/core/src/umath/loops.c.src | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/src/multiarray/common.c b/numpy/core/src/multiarray/common.c index ca3409e7b..449616986 100644 --- a/numpy/core/src/multiarray/common.c +++ b/numpy/core/src/multiarray/common.c @@ -602,7 +602,7 @@ _IsWriteable(PyArrayObject *ap) * and unpickled array can be set and reset writeable * -- could be abused -- */ - if PyString_Check(base) { + if (PyString_Check(base)) { return TRUE; } if (PyObject_AsWriteBuffer(base, &dummy, &n) < 0) { diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index ec2777e9d..0ba1a9c04 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -209,7 +209,7 @@ _convert_from_tuple(PyObject *obj) type->elsize = itemsize; } } - else if PyDict_Check(val) { + else if (PyDict_Check(val)) { /* Assume it's a metadata dictionary */ if (PyDict_Merge(type->metadata, val, 0) == -1) { Py_DECREF(type); diff --git a/numpy/core/src/multiarray/scalarapi.c b/numpy/core/src/multiarray/scalarapi.c index 6f451c71a..9362538ed 100644 --- a/numpy/core/src/multiarray/scalarapi.c +++ b/numpy/core/src/multiarray/scalarapi.c @@ -658,7 +658,7 @@ PyArray_Scalar(void *data, PyArray_Descr *descr, PyObject *base) if (obj == NULL) { return NULL; } - if PyTypeNum_ISDATETIME(type_num) { + if (PyTypeNum_ISDATETIME(type_num)) { /* * We need to copy the resolution information over to the scalar * Get the void * from the metadata dictionary @@ -674,7 +674,7 @@ PyArray_Scalar(void *data, PyArray_Descr *descr, PyObject *base) memcpy(&(((PyDatetimeScalarObject *)obj)->obmeta), dt_data, sizeof(PyArray_DatetimeMetaData)); } - if PyTypeNum_ISFLEXIBLE(type_num) { + if (PyTypeNum_ISFLEXIBLE(type_num)) { if (type_num == PyArray_STRING) { destptr = PyString_AS_STRING(obj); ((PyStringObject *)obj)->ob_shash = -1; diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index 88016dd37..72616e27c 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -416,7 +416,7 @@ PyUFunc_On_Om(char **args, intp *dimensions, intp *steps, void *func) if (result == NULL) { return; } - if PyTuple_Check(result) { + if (PyTuple_Check(result)) { if (nout != PyTuple_Size(result)) { Py_DECREF(result); return; |