From: dalcinl Date: Wed, 28 Apr 2010 23:30:58 +0000 (-0300) Subject: sizeof(long double)==sizeof(double) in MSVC conficts with numpy built with MinGW X-Git-Tag: 0.13.beta0~132 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2da7bec367bc190e7445d72e1308d0f2e8a8b9a5;p=cython.git sizeof(long double)==sizeof(double) in MSVC conficts with numpy built with MinGW --- 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)