Changeset: 83aeb0bf6104 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/83aeb0bf6104
Modified Files:
        sql/backends/monet5/dict.c
Branch: dict
Log Message:

Add some casts.


diffs (57 lines):

diff --git a/sql/backends/monet5/dict.c b/sql/backends/monet5/dict.c
--- a/sql/backends/monet5/dict.c
+++ b/sql/backends/monet5/dict.c
@@ -151,7 +151,7 @@ DICTcompress_intern(BAT **O, BAT **U, BA
                o->tnonil = b->tnonil;
                o->tkey = b->tkey;
 
-               BATmaxminpos_bte(o, BATcount(u)-1);
+               BATmaxminpos_bte(o, (bte) (BATcount(u)-1));
        } else {
                sht *op = (sht*)Tloc(o, 0);
                BATloop(b, p, q) {
@@ -167,7 +167,7 @@ DICTcompress_intern(BAT **O, BAT **U, BA
                o->tnonil = b->tnonil;
                o->tkey = b->tkey;
 
-               BATmaxminpos_sht(o, BATcount(u)-1);
+               BATmaxminpos_sht(o, (sht) (BATcount(u)-1));
        }
        bat_iterator_end(&bi);
        *O = o;
@@ -919,7 +919,7 @@ DICTprepare4append(BAT **noffsets, BAT *
                                        }
                                        /* reinitialize */
                                        ui = bat_iterator_nolock(dict);
-                                       op[i] = BATcount(dict)-1;
+                                       op[i] = (bte) (BATcount(dict)-1);
                                }
                        }
                }
@@ -949,7 +949,7 @@ DICTprepare4append(BAT **noffsets, BAT *
                                        }
                                        /* reinitialize */
                                        ui = bat_iterator_nolock(dict);
-                                       op[i] = BATcount(dict)-1;
+                                       op[i] = (sht) (BATcount(dict)-1);
                                }
                        }
                }
@@ -1023,7 +1023,7 @@ DICTprepare4append_vals(void **noffsets,
                                        }
                                        /* reinitialize */
                                        ui = bat_iterator_nolock(dict);
-                                       op[i] = BATcount(dict)-1;
+                                       op[i] = (bte) (BATcount(dict)-1);
                                }
                        }
                }
@@ -1054,7 +1054,7 @@ DICTprepare4append_vals(void **noffsets,
                                        }
                                        /* reinitialize */
                                        ui = bat_iterator_nolock(dict);
-                                       op[i] = BATcount(dict)-1;
+                                       op[i] = (sht) (BATcount(dict)-1);
                                }
                        }
                }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to