[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stack module and -Wsign-compare
From: |
Marc Nieper-Wißkirchen |
Subject: |
Re: Stack module and -Wsign-compare |
Date: |
Thu, 6 Jan 2022 10:17:56 +0100 |
Thank you, Paul. My local tests also show that it behaves better now.
Am Mi., 5. Jan. 2022 um 20:54 Uhr schrieb Paul Eggert <eggert@cs.ucla.edu>:
>
> On 1/5/22 10:00, Bruno Haible wrote:
> > Another possible fix would be to change
> > size_t size;
> > to
> > idx_t size;
> > in the struct.
>
> Yes, that fits better into our strategy of preferring signed to unsigned
> types for sizes. Plus, it avoids a cast that's too powerful in C. I
> installed the attached.