Skip to content

Commit

Permalink
Fix when _NPY_MAX/MIN is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou committed Jul 21, 2023
1 parent 6ce134b commit 1a89522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/core/src/umath/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ _NPY_MIN(npy_cfloat a, npy_cfloat b, npy::complex_tag const &)
: (b);
}

#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && NPY_SIZEOF_COMPLEX_LONGDOUBLE != NPY_SIZEOF_COMPLEX_DOUBLE
#if (defined(_MSC_VER) && !defined(__INTEL_COMPILER)) || NPY_SIZEOF_COMPLEX_LONGDOUBLE != NPY_SIZEOF_COMPLEX_DOUBLE
npy_clongdouble
_NPY_MIN(npy_clongdouble a, npy_clongdouble b, npy::complex_tag const &)
{
Expand All @@ -97,7 +97,7 @@ _NPY_MAX(npy_cfloat a, npy_cfloat b, npy::complex_tag const &)
: (b);
}

#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && NPY_SIZEOF_COMPLEX_LONGDOUBLE != NPY_SIZEOF_COMPLEX_DOUBLE
#if (defined(_MSC_VER) && !defined(__INTEL_COMPILER)) || NPY_SIZEOF_COMPLEX_LONGDOUBLE != NPY_SIZEOF_COMPLEX_DOUBLE
npy_clongdouble
_NPY_MAX(npy_clongdouble a, npy_clongdouble b, npy::complex_tag const &)
{
Expand Down

0 comments on commit 1a89522

Please sign in to comment.