projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8eb636
)
sizeof(long double)==sizeof(double) in MSVC conficts with numpy built with MinGW
author
dalcinl
<none@none>
Wed, 28 Apr 2010 23:30:58 +0000
(20:30 -0300)
committer
dalcinl
<none@none>
Wed, 28 Apr 2010 23:30:58 +0000
(20:30 -0300)
tests/run/numpy_test.pyx
patch
|
blob
|
history
diff --git
a/tests/run/numpy_test.pyx
b/tests/run/numpy_test.pyx
index 2f9801d9be463d7ebe6a6a885c4dfec180b74f37..104670ba0ae4b0b18fe705cb1b390aa69d1a872b 100644
(file)
--- 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)