diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-04-04 15:34:49 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-04-04 15:34:49 +0000 |
commit | 64e70811b58ade22a4a2c4be24b41dec23303942 (patch) | |
tree | cdf6d97cdd54849ab25e3d708022021ead68357a /numpy/lib/src/_compiled_base.c | |
parent | af2b0578c642cb269478dc3b048e59d0d79e0820 (diff) | |
download | numpy-64e70811b58ade22a4a2c4be24b41dec23303942.tar.gz |
ENH: get rid of #warning directives, either by fixing the issue or changing them to comments
Diffstat (limited to 'numpy/lib/src/_compiled_base.c')
-rw-r--r-- | numpy/lib/src/_compiled_base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c index 38a446c06..3ded93e0b 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -559,7 +559,7 @@ static PyObject * arr_add_docstring(PyObject *NPY_UNUSED(dummy), PyObject *args) { PyObject *obj; - PyObject *str; + PyObject *str, *tmp; char *docstr; static char *msg = "already has a docstring"; @@ -573,8 +573,8 @@ arr_add_docstring(PyObject *NPY_UNUSED(dummy), PyObject *args) return NULL; } - docstr = PyUnicode_AS_DATA(str); -#warning XXX -- is this correct at all!? + tmp = PyUnicode_AsUTF8String(str); + docstr = PyBytes_AS_STRING(tmp); #else if (!PyArg_ParseTuple(args, "OO!", &obj, &PyString_Type, &str)) { return NULL; |