From 2da7bec367bc190e7445d72e1308d0f2e8a8b9a5 Mon Sep 17 00:00:00 2001 From: dalcinl Date: Wed, 28 Apr 2010 20:30:58 -0300 Subject: [PATCH] sizeof(long double)==sizeof(double) in MSVC conficts with numpy built with MinGW --- tests/run/numpy_test.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run/numpy_test.pyx b/tests/run/numpy_test.pyx index 2f9801d9..104670ba 100644 --- a/tests/run/numpy_test.pyx +++ b/tests/run/numpy_test.pyx @@ -326,6 +326,10 @@ def inc1_float64_t(np.ndarray[np.float64_t] arr): arr[1] += 1 def test_dtype(dtype, inc1): + if dtype in ("g", np.longdouble, + "G", np.clongdouble): + if sizeof(double) == sizeof(long double): # MSVC + return if dtype in (b'F', b'D', b'G'): a = np.array([0, 10+10j], dtype=dtype) inc1(a) -- 2.26.2