summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-02-18 06:12:19 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-02-18 06:12:19 +0000
commitca84e842144162056592cf97a172708946a049e0 (patch)
treedf6bcff4037e6920ec8ae9c3352861ee8d5258ce /numpy
parent6e709fd4efe657611ac137d3205c93931fe61698 (diff)
downloadnumpy-ca84e842144162056592cf97a172708946a049e0.tar.gz
Fixed compiler warnings.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/arraytypes.inc.src2
-rw-r--r--numpy/core/src/scalartypes.inc.src3
2 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/arraytypes.inc.src b/numpy/core/src/arraytypes.inc.src
index 468728154..0fd105ab1 100644
--- a/numpy/core/src/arraytypes.inc.src
+++ b/numpy/core/src/arraytypes.inc.src
@@ -238,7 +238,7 @@ UNICODE_getitem(char *ip, PyArrayObject *ap)
}
else buffer = ip;
#ifdef Py_UNICODE_WIDE
- obj = PyUnicode_FromUnicode((const PyArray_UCS4 *)buffer, mysize);
+ obj = PyUnicode_FromUnicode((const Py_UNICODE *)buffer, mysize);
#else
/* create new empty unicode object of length mysize*2 */
obj = MyPyUnicode_New(mysize*2);
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src
index 2f48ff041..9926cd83c 100644
--- a/numpy/core/src/scalartypes.inc.src
+++ b/numpy/core/src/scalartypes.inc.src
@@ -205,8 +205,9 @@ PyArray_FromScalar(PyObject *scalar, PyArray_Descr *outcode)
if (PyArray_ISOBJECT(r)) {
Py_INCREF(*((PyObject **)memptr));
}
-
+#ifndef Py_UNICODE_WIDE
finish:
+#endif
if (outcode == NULL) return r;
if (outcode->type_num == typecode->type_num) {