Changeset: a3bf035af8ee for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a3bf035af8ee Modified Files: sql/backends/monet5/sql_result.mx Branch: Aug2011 Log Message:
Remove possible source of overflow. diffs (16 lines): diff --git a/sql/backends/monet5/sql_result.mx b/sql/backends/monet5/sql_result.mx --- a/sql/backends/monet5/sql_result.mx +++ b/sql/backends/monet5/sql_result.mx @@ -272,8 +272,10 @@ bat_max_@1length(BAT *b) if (m < min) min = m; } - if ((-min * 10) > max) - max = (-min * 10); + if (-min > max / 10) { + max = -min; + ret++; /* '-' */ + } while (max /= 10) ret++; ret++; _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list