diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 04:33:26 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 04:33:26 -0400 |
commit | 05814df9c0be77ff0168a22415e2282d093df5d5 (patch) | |
tree | dec96dba9b6bcc506fd41a13180a2ab9dc2222d0 /src/parse.c | |
parent | cb7840991612fbbe259bf07c53f34577c5b5c2b9 (diff) |
gcc-stricter warnings, no object change
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c index 33e6938..044e02c 100644 --- a/src/parse.c +++ b/src/parse.c @@ -276,7 +276,7 @@ static int twmStringListInput(void) */ void twmUnput (int c) { - if (overflowlen < sizeof overflowbuff) { + if ((size_t)overflowlen < sizeof overflowbuff) { overflowbuff[overflowlen++] = (unsigned char) c; } else { twmrc_error_prefix (); @@ -959,7 +959,7 @@ put_pixel_on_root(Pixel pixel) &retFormat, &nPixels, &retAfter, &retProp) == Success) { pixelProp = (Pixel *) retProp; - for (i = 0; i < nPixels; i++) + for (i = 0; (unsigned long)i < nPixels; i++) if (pixel == pixelProp[i]) addPixel = 0; } |