Changeset: 19a42f168e51 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=19a42f168e51
Modified Files:
        monetdb5/modules/mal/mosaic.c
        monetdb5/modules/mal/mosaic_rle.c
Branch: mosaic
Log Message:

Compilation issues


diffs (33 lines):

diff --git a/monetdb5/modules/mal/mosaic.c b/monetdb5/modules/mal/mosaic.c
--- a/monetdb5/modules/mal/mosaic.c
+++ b/monetdb5/modules/mal/mosaic.c
@@ -556,7 +556,7 @@ MOSsubselect(Client cntxt, MalBlkPtr mb,
        int *ret, *bid, *cid= 0;
        int i;
        BUN cnt = 0;
-       lng first =0, last = 0;
+       BUN first =0, last = 0;
        BAT *b, *bn, *cand = NULL;
        str msg = MAL_SUCCEED;
        MOStask task;
@@ -758,7 +758,7 @@ str MOSthetasubselect(Client cntxt, MalB
                }
        }
        // derive the filling
-       cnt = task->lb - (oid*) Tloc(bn,BUNfirst(bn));
+       cnt = (BUN)( task->lb - (oid*) Tloc(bn,BUNfirst(bn)));
        
        if( cid)
                BBPreleaseref(cid);
diff --git a/monetdb5/modules/mal/mosaic_rle.c 
b/monetdb5/modules/mal/mosaic_rle.c
--- a/monetdb5/modules/mal/mosaic_rle.c
+++ b/monetdb5/modules/mal/mosaic_rle.c
@@ -107,7 +107,7 @@ MOSestimate_rle(Client cntxt, MOStask ta
                        for(i =1; i<task->elm; i++)
                        if ( ((int*)task->src)[i] != val)
                                break;
-                       percentage = 100 * sizeof(int)/ ( i * sizeof(int));
+                       percentage = 100 * sizeof(int)/ ( (int) i * 
sizeof(int));
                }
        }
        mnstr_printf(cntxt->fdout,"#estimate rle %d elm %d 
perc\n",(int)i,percentage);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to