Changeset: c9127fbab833 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c9127fbab833
Modified Files:
monetdb5/modules/mal/pp_hash.c
Branch: pp_hashjoin
Log Message:
use lng max (or INT64_MAX)
diffs (12 lines):
diff --git a/monetdb5/modules/mal/pp_hash.c b/monetdb5/modules/mal/pp_hash.c
--- a/monetdb5/modules/mal/pp_hash.c
+++ b/monetdb5/modules/mal/pp_hash.c
@@ -416,7 +416,7 @@ OAHASHnew(Client cntxt, MalBlkPtr m, Mal
size = *getArgReference_lng(s, p, 2);
}
/* multiply with the magic estimation while avoiding overflow */
- size = size > ((dbl)BUN_MAX / 1.2 / 2.1)? BUN_MAX : size * 1.2 * 2.1;
+ size = size > ((dbl)INT64_MAX / 1.2 / 2.1)? INT64_MAX : (lng)(size *
1.2 * 2.1);
if (p->argc == 4) {
bat pid = *getArgReference_bat(s, p, 3);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]