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

use hge (or BIG)


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_round_impl.h 
b/sql/backends/monet5/sql_round_impl.h
--- a/sql/backends/monet5/sql_round_impl.h
+++ b/sql/backends/monet5/sql_round_impl.h
@@ -293,7 +293,7 @@ str_2dec(TYPE *res, const str *val, cons
        char *dot = strchr(s, '.'), *end = NULL;
        int digits = _strlen(s);
        int scale = digits - (int) (dot - s) - 1;
-       lng value = 0;
+       BIG value = 0;
 
        if (!dot) {
                if (GDK_STRNIL(*val)) {
@@ -322,7 +322,7 @@ str_2dec(TYPE *res, const str *val, cons
                /* the current scale is too big, decrease it by correctly 
rounding */
                /* we should round properly, and check for overflow (res >= 
10^digits+scale) */
                int dff = scale - *sc;  /* CANNOT be 0 */
-               lng rnd = scales[dff] >> 1;
+               BIG rnd = scales[dff] >> 1;
 
                if (value > 0)
                        value += rnd;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to