From: Pádraig Brady Date: Thu, 15 Jan 2009 17:32:31 +0000 (+0000) Subject: pr: avoid -Wsign-compare warnings X-Git-Tag: v7.1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3288ebb0d70cd8140f947a7aa3a83ab0e904f624;p=thirdparty%2Fcoreutils.git pr: avoid -Wsign-compare warnings * src/pr.c: Use unsigned variables in unsigned comparisons. --- diff --git a/src/pr.c b/src/pr.c index d2b6714e0f..308a025706 100644 --- a/src/pr.c +++ b/src/pr.c @@ -1,5 +1,5 @@ /* pr -- convert text files for printing. - Copyright (C) 88, 91, 1995-2008 Free Software Foundation, Inc. + Copyright (C) 88, 91, 1995-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -455,7 +455,7 @@ static char *buff; /* Index of the position in buff where the next character will be stored. */ -static int buff_current; +static unsigned int buff_current; /* The number of characters in buff. Used for allocation of buff and to detect overflow of buff. */ @@ -1944,8 +1944,8 @@ static void store_columns (void) { int i, j; - int line = 0; - int buff_start; + unsigned int line = 0; + unsigned int buff_start; int last_col; /* The rightmost column which will be saved in buff */ COLUMN *p;