diff --git a/c/parsing/lemon_report.c b/c/parsing/lemon_report.c index 62b5e592af..c35f99a005 100644 --- a/c/parsing/lemon_report.c +++ b/c/parsing/lemon_report.c @@ -627,7 +627,7 @@ void print_stack_union( int maxdtlength; /* Maximum length of any ".datatype" field. */ char *stddt; /* Standardized name for a datatype */ int i,j; /* Loop counters */ - int hash; /* For hashing the name of a type */ + unsigned hash; /* For hashing the name of a type */ char *name; /* Name of the parser */ /* Allocate and initialize types[] and allocate stddt[] */ @@ -677,7 +677,7 @@ void print_stack_union( stddt[j] = 0; hash = 0; for(j=0; stddt[j]; j++){ - hash = hash*53 + stddt[j]; + hash = hash*53 + (unsigned)stddt[j]; } hash = (hash & 0x7fffffff)%arraysize; while (types[hash]) { diff --git a/c/parsing/lemon_state_table.c b/c/parsing/lemon_state_table.c index dbdcbfc45d..4a74a1b5f7 100644 --- a/c/parsing/lemon_state_table.c +++ b/c/parsing/lemon_state_table.c @@ -31,12 +31,12 @@ struct config *b; static int statehash(a) struct config *a; { - int h=0; + unsigned h=0; while (a) { - h = h*571 + a->rp->index*37 + a->dot; + h = h*571 + (unsigned)a->rp->index*37 + (unsigned)a->dot; a = a->bp; } - return h; + return (int)h; } /* Allocate a new state structure */ diff --git a/c/parsing/lemon_string.c b/c/parsing/lemon_string.c index 1bcb23f77d..2055b31026 100644 --- a/c/parsing/lemon_string.c +++ b/c/parsing/lemon_string.c @@ -5,9 +5,9 @@ #include "lemon_string.h" int strhash(char *x) { - int h = 0; + unsigned h = 0; while (*x) h = h*13 + *(x++); - return h; + return (int)h; } // ================================================================ diff --git a/c/todo.txt b/c/todo.txt index 315621e751..89cbee25b1 100644 --- a/c/todo.txt +++ b/c/todo.txt @@ -27,13 +27,13 @@ airable: ! mld/mlh stats1 regex cookbook/10min examples ! termcvt -I -!!! aux-list -> main help; dox too +! aux-list -> main help; dox too + * UT unhex + ! faqent/cookbook/more: mlr termcvt --cr2lf foo.csv.cr > foo.csv -! !autoreconf doc note w/ as-of-5.2.0 caveat - * reg_test/run --mlrexec flag * across-all/regex x stats1 / many verbs diff --git a/doc/manpage.html b/doc/manpage.html index 3f48756745..e520e7ba91 100644 --- a/doc/manpage.html +++ b/doc/manpage.html @@ -2228,7 +2228,7 @@ - 2017-06-14 MILLER(1) + 2017-06-19 MILLER(1)

diff --git a/doc/manpage.txt b/doc/manpage.txt index b6f35ce011..d11bc4f93f 100644 --- a/doc/manpage.txt +++ b/doc/manpage.txt @@ -2035,4 +2035,4 @@ SEE ALSO - 2017-06-14 MILLER(1) + 2017-06-19 MILLER(1) diff --git a/doc/mlr.1 b/doc/mlr.1 index 4ff6178c71..431814eb36 100644 --- a/doc/mlr.1 +++ b/doc/mlr.1 @@ -2,12 +2,12 @@ .\" Title: mlr .\" Author: [see the "AUTHOR" section] .\" Generator: ./mkman.rb -.\" Date: 2017-06-14 +.\" Date: 2017-06-19 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "MILLER" "1" "2017-06-14" "\ \&" "\ \&" +.TH "MILLER" "1" "2017-06-19" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Portability definitions .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~