From 6e297e8855085e99b1a910d77bebeadd7925f90d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 6 Nov 2024 18:04:35 -0800 Subject: [PATCH] expand: use signed colno * src/expand-common.h (colno): Now intmax_t, not uintmax_t. --- src/expand-common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. */ -- 2.47.2