Changeset: a8d3da47910c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a8d3da47910c
Modified Files:
        clients/mapiclient/mhelp.c
Branch: Jul2017
Log Message:

Add a cast.


diffs (12 lines):

diff --git a/clients/mapiclient/mhelp.c b/clients/mapiclient/mhelp.c
--- a/clients/mapiclient/mhelp.c
+++ b/clients/mapiclient/mhelp.c
@@ -858,7 +858,7 @@ sql_help(char *pattern, stream *toConsol
        }
 
        // provide summary of all major topics  (=search terms)
-       ncolumns = (int) maxlen > pagewidth ? 1 : pagewidth / maxlen;
+       ncolumns = (int) maxlen > pagewidth ? 1 : (int) (pagewidth / maxlen);
        if (ncolumns > 1 && ncolumns * (int) maxlen + ncolumns - 1 > pagewidth)
                ncolumns--;
        step = total / ncolumns;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to