[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cut.c patch for unsigned overflow problems with sizes, etc.
From: |
Jim Meyering |
Subject: |
Re: cut.c patch for unsigned overflow problems with sizes, etc. |
Date: |
Thu, 06 Nov 2003 10:31:15 +0100 |
Paul Eggert <address@hidden> wrote:
> I went through cut.c and found some problems on hosts where size_t is
> wider than int. While I was at it, I fixed the widths of all the
> integer types that I could find. Here's a proposed patch.
>
> 2003-11-05 Paul Eggert <address@hidden>
>
> Fix 'cut' problems with size_t overflow and unsigned int.
> More generally, resize integer variables to fit use more precisely.
> * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
> * src/cut.c (ADD_RANGE_PAIR): Remove unnecessary parens.
Thanks a lot! That looks fine, as usual.
I've applied it.