Changeset: 9a7e90abee11 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9a7e90abee11
Modified Files:
        monetdb5/modules/mal/joinpath.c
Branch: default
Log Message:

Add a cast.


diffs (21 lines):

diff --git a/monetdb5/modules/mal/joinpath.c b/monetdb5/modules/mal/joinpath.c
--- a/monetdb5/modules/mal/joinpath.c
+++ b/monetdb5/modules/mal/joinpath.c
@@ -212,7 +212,7 @@ ALGjoinChain(Client cntxt, int top, BAT 
                oc = *(oid *) BUNtail(iter[0], lo);
                for(i = 1; i < pcol; i++)
                        if (oc + offset[i] < size[i]) {
-                               v = BUNtail(iter[i], oc + offset[i]);
+                               v = BUNtail(iter[i], (BUN) (oc + offset[i]));
                                oc = *(oid*) v;
                                if (oc == oid_nil)
                                        goto bunins_failed;
@@ -222,7 +222,7 @@ ALGjoinChain(Client cntxt, int top, BAT 
                        continue;
                // update the join result and keep track of properties
                if (oc + offset[pcol] < size[pcol]){
-                       v = BUNtail(iter[pcol], oc + offset[pcol]);
+                       v = BUNtail(iter[pcol], (BUN) (oc + offset[pcol]));
                        bunfastapp(bn,v);
                        cnt++;
                }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to