Changeset: dae263c5e6fd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/dae263c5e6fd
Modified Files:
        monetdb5/mal/mal_prelude.c
Branch: no_type_bat
Log Message:

some windows compiler fixes


diffs (28 lines):

diff --git a/monetdb5/mal/mal_prelude.c b/monetdb5/mal/mal_prelude.c
--- a/monetdb5/mal/mal_prelude.c
+++ b/monetdb5/mal/mal_prelude.c
@@ -199,12 +199,13 @@ makeMalType(mel_arg *a)
 void
 setPoly(mel_func *f, malType tpe)
 {
-       int any = isAnyExpression(tpe) || tpe == TYPE_any, index = 0;
+       int any = isAnyExpression(tpe) || tpe == TYPE_any;
+    unsigned int index = 0;
        if (!any)
                return;
        if (getTypeIndex(tpe) > 0)
                index = getTypeIndex(tpe);
-       if (any && (index + 1) >= f->poly)
+       if (any && (index + 1) > f->poly)
                f->poly = index + 1;
 }
 
@@ -232,7 +233,7 @@ addFunctions(mel_func *fcn)
                s->func = fcn;
 
                /* add the return variables */
-               int i;
+               unsigned int i;
                for (i = 0; i < fcn->retc; i++) {
                        mel_arg *a = fcn->args + i;
                        malType tpe = makeMalType(a);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to