diff options
-rw-r--r-- | numpy/core/src/multiarray/convert_datatype.c | 2 | ||||
-rw-r--r-- | numpy/core/src/scalarmathmodule.c.src | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/convert_datatype.c b/numpy/core/src/multiarray/convert_datatype.c index 5cb62b82f..f93a45717 100644 --- a/numpy/core/src/multiarray/convert_datatype.c +++ b/numpy/core/src/multiarray/convert_datatype.c @@ -121,7 +121,7 @@ PyArray_GetCastFunc(PyArray_Descr *descr, int type_num) #if PY_VERSION_HEX >= 0x02050000 ret = PyErr_WarnEx(cls, "Casting complex values to real discards the imaginary " - "part", 0); + "part", 1); #else ret = PyErr_Warn(cls, "Casting complex values to real discards the imaginary " diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index 6261c4c73..6913f517d 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -990,7 +990,7 @@ emit_complexwarning() #if PY_VERSION_HEX >= 0x02050000 return PyErr_WarnEx(cls, "Casting complex values to real discards the imaginary " - "part", 0); + "part", 1); #else return PyErr_Warn(cls, "Casting complex values to real discards the imaginary " |