summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-07-21 01:58:21 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-07-21 01:58:21 +0000
commit2024e81b568be2836bec88ab23615cef3659b3d0 (patch)
tree50b3d095744ff1668db791241bbe460ce52ae18b /numpy
parent661ac79b5e3af1aba0e33bfccba1585cf6e6e9e5 (diff)
downloadnumpy-2024e81b568be2836bec88ab23615cef3659b3d0.tar.gz
BUG: npy_math_private was using some endian-related macros without including the necessary header + type fixes.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/npymath/npy_math_private.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/core/src/npymath/npy_math_private.h b/numpy/core/src/npymath/npy_math_private.h
index e76db5331..ecdbfe434 100644
--- a/numpy/core/src/npymath/npy_math_private.h
+++ b/numpy/core/src/npymath/npy_math_private.h
@@ -18,6 +18,8 @@
#ifndef _NPY_MATH_PRIVATE_H_
#define _NPY_MATH_PRIVATE_H_
+#include <numpy/npy_endian.h>
+
/*
* The original fdlibm code used statements like:
* n0 = ((*(int*)&one)>>29)^1; * index of high word *
@@ -47,8 +49,8 @@ typedef union
double value;
struct
{
- npy_uint32_t msw;
- npy_uint32_t lsw;
+ npy_uint32 msw;
+ npy_uint32 lsw;
} parts;
} ieee_double_shape_type;
@@ -61,8 +63,8 @@ typedef union
double value;
struct
{
- u_int32_t lsw;
- u_int32_t msw;
+ npy_uint32 lsw;
+ npy_uint32 msw;
} parts;
} ieee_double_shape_type;