Changeset: 112bd55fb299 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=112bd55fb299
Modified Files:
        sql/backends/monet5/iot/basket.c
Branch: iot
Log Message:

Type fix


diffs (35 lines):

diff --git a/sql/backends/monet5/iot/basket.c b/sql/backends/monet5/iot/basket.c
--- a/sql/backends/monet5/iot/basket.c
+++ b/sql/backends/monet5/iot/basket.c
@@ -501,10 +501,10 @@ BSKTtumbleInternal(Client cntxt, str sch
                sql_column *c = n->data;
                b = store_funcs.bind_col(m->session->tr,c,RD_INS);
                assert( b );
-               if( stride > -1)
-                       cnt = (BUN) stride ;
+               if( stride != -1)
+                       cnt = (BUN) stride;
                else
-                       cnt=BATcount(b);
+                       cnt= BATcount(b);
 
                switch(ATOMstorage(b->ttype)){
                case TYPE_bit:ColumnShift(b,bit,cnt); break;
@@ -545,7 +545,7 @@ BSKTtumble(Client cntxt, MalBlkPtr mb, M
 {
        str sch;
        str tbl;
-       int elm = -1;
+       BUN elm = oid_nil;
        int idx;
 
        (void) cntxt;
@@ -560,7 +560,7 @@ BSKTtumble(Client cntxt, MalBlkPtr mb, M
                idx = BSKTlocate(sch, tbl);
                if( idx ==0)
                        throw(SQL,"basket.tumble","Stream table %s.%s not 
accessible \n",sch,tbl);
-               elm = baskets[idx].winstride;
+               elm =(int) baskets[idx].winstride;
        }
        return BSKTtumbleInternal(cntxt, sch, tbl, elm);
 }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to