From: Paul Eggert Date: Thu, 7 Nov 2024 02:04:35 +0000 (-0800) Subject: expand: use signed colno X-Git-Tag: v9.6~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e297e8855085e99b1a910d77bebeadd7925f90d;p=thirdparty%2Fcoreutils.git expand: use signed colno * src/expand-common.h (colno): Now intmax_t, not uintmax_t. --- diff --git a/src/expand-common.h b/src/expand-common.h index 5b20d018a6..faca01013f 100644 --- a/src/expand-common.h +++ b/src/expand-common.h @@ -15,8 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* Column numbers are nonnegative, with the leftmost column being zero. */ -typedef uintmax_t colno; +/* Column numbers are nonnegative, with the leftmost column being zero. + Use a signed type, as that allows for better checking. */ +typedef intmax_t colno; /* If true, convert blanks even after nonblank characters have been read on the line. */