Changeset: 53f56173b7a7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=53f56173b7a7
Modified Files:
        monetdb5/extras/pyapi/pyapi.c
Branch: pyapi
Log Message:

clang fix


diffs (12 lines):

diff --git a/monetdb5/extras/pyapi/pyapi.c b/monetdb5/extras/pyapi/pyapi.c
--- a/monetdb5/extras/pyapi/pyapi.c
+++ b/monetdb5/extras/pyapi/pyapi.c
@@ -79,7 +79,7 @@ static int pyapiInitialized = FALSE;
         pMask = PyObject_GetAttrString(pColO, "mask");                \
         if (pMask != NULL)                                            \
         {                                                             \
-            pMaskArray = (PyArrayObject*) PyArray_FromAny(pMask, NPY_BOOL, 1, 
1,  NPY_ARRAY_CARRAY, NULL); \
+            pMaskArray = (PyArrayObject*) PyArray_FromAny(pMask, 
PyArray_DescrFromType(NPY_BOOL), 1, 1,  NPY_ARRAY_CARRAY, NULL); \
             if (pMaskArray == NULL || PyArray_DIMS(pMaskArray)[0] != 
(int)count)                                  \
             {                                                         \
                 msg = createException(MAL, "pyapi.eval", "A masked array was 
returned, but the mask does not have the same length as the array.");  \
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to