Changeset: 608f6cf4ddf3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/608f6cf4ddf3
Modified Files:
        sql/backends/monet5/bin_partition_by_slice.c
Branch: pp_hashjoin
Log Message:

fix overflow


diffs (14 lines):

diff --git a/sql/backends/monet5/bin_partition_by_slice.c 
b/sql/backends/monet5/bin_partition_by_slice.c
--- a/sql/backends/monet5/bin_partition_by_slice.c
+++ b/sql/backends/monet5/bin_partition_by_slice.c
@@ -63,8 +63,8 @@ exp_getcard(mvc *sql, sql_rel *rel, sql_
 
                if (c) {
                        int de = mvc_is_duplicate_eliminated(sql, c);
-                       if (de && (1<<(de*8)) < cnt)
-                               cnt = (1<<(de*8));
+                       if (de && (((lng)1)<<(de*8)) < cnt)
+                               cnt = (((lng)1)<<(de*8));
                }
        }
        /* for now only based on type info, later use propagated cardinality 
estimation */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to