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

Use oid instead of lng when referencing bat oids (fixes crash on 32-bit oid 
systems).


diffs (21 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
@@ -1067,7 +1067,7 @@ str PyAPIeval(Client cntxt, MalBlkPtr mb
             BAT *aggr_group = NULL, *group_first_occurrence = NULL;
             size_t group_count, elements, element_it, group_it;
             size_t *group_counts = NULL;
-            lng *aggr_group_arr = NULL;
+            oid *aggr_group_arr = NULL;
             void ***split_bats = NULL;
             int named_columns = unnamedArgs - (pci->retc + 2);
             PyObject *aggr_result;
@@ -1090,7 +1090,7 @@ str PyAPIeval(Client cntxt, MalBlkPtr mb
                 goto aggrwrapup;
             }
 
-            aggr_group_arr = (lng*) aggr_group->T->heap.base;
+            aggr_group_arr = (oid*) aggr_group->T->heap.base;
             for(element_it = 0; element_it < elements; element_it++) {
                 group_counts[aggr_group_arr[element_it]]++;
             }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to