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

Added some casts.


diffs (30 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -4549,7 +4549,7 @@ BATSTRindex_int(bat *res, bat *src, bit 
                                pad += GDK_VARALIGN;
                        pos += pad + extralen;
                        s = h->base + pos;
-                       v = pos-GDK_STRHASHSIZE;
+                       v = (int) (pos - GDK_STRHASHSIZE);
                        BUNappend(r, &v, FALSE);
                        pos += GDK_STRLEN(s);
                }
@@ -4597,7 +4597,7 @@ BATSTRindex_sht(bat *res, bat *src, bit 
                                pad += GDK_VARALIGN;
                        pos += pad + extralen;
                        s = h->base + pos;
-                       v = pos-GDK_STRHASHSIZE;
+                       v = (sht) (pos - GDK_STRHASHSIZE);
                        BUNappend(r, &v, FALSE);
                        pos += GDK_STRLEN(s);
                }
@@ -4645,7 +4645,7 @@ BATSTRindex_bte(bat *res, bat *src, bit 
                                pad += GDK_VARALIGN;
                        pos += pad + extralen;
                        s = h->base + pos;
-                       v = pos-GDK_STRHASHSIZE;
+                       v = (bte) (pos - GDK_STRHASHSIZE);
                        BUNappend(r, &v, FALSE);
                        pos += GDK_STRLEN(s);
                }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to