summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-09-13 06:03:30 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-09-13 06:03:30 +0000
commit39a7b4a1ca3de1289f6d2fe09ac3c2527dcaa1c1 (patch)
tree9f4202550e514684179cef23de03a9b3531029c1 /numpy/core
parente091c840e101eb620307747e0e4cd1b939d8abe6 (diff)
downloadnumpy-39a7b4a1ca3de1289f6d2fe09ac3c2527dcaa1c1.tar.gz
Fix cygwin compilation
Recent version of binutils (2.18.50) do not accept 4 bytes operand for some opcodes like fnstsw (which always expected a 2 bytes operand). Replace the type of the argument from unsigned 2 bytes to unsigned 4 bytes unsigned integer.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/include/numpy/fenv/fenv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/include/numpy/fenv/fenv.h b/numpy/core/include/numpy/fenv/fenv.h
index 188f5d477..70b3d83f8 100644
--- a/numpy/core/include/numpy/fenv/fenv.h
+++ b/numpy/core/include/numpy/fenv/fenv.h
@@ -91,7 +91,7 @@ feclearexcept(int __excepts)
static __inline int
fegetexceptflag(fexcept_t *__flagp, int __excepts)
{
- int __status;
+ __uint16_t __status;
__fnstsw(&__status);
*__flagp = __status & __excepts;
@@ -123,7 +123,7 @@ feraiseexcept(int __excepts)
static __inline int
fetestexcept(int __excepts)
{
- int __status;
+ __uint16_t __status;
__fnstsw(&__status);
return (__status & __excepts);
@@ -187,7 +187,7 @@ fesetenv(const fenv_t *__envp)
static __inline int
feupdateenv(const fenv_t *__envp)
{
- int __status;
+ __uint16_t __status;
__fnstsw(&__status);
__fldenv(*__envp);