bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix src/function.c build failure on gcc-12.


From: Paul Smith
Subject: Re: [PATCH] Fix src/function.c build failure on gcc-12.
Date: Mon, 21 Feb 2022 10:29:53 -0500
User-agent: Evolution 3.42.4 (by Flathub.org))

On Mon, 2022-02-21 at 08:59 +0000, Edward Welbourne wrote:
> and that's assuming a 32-bit int; the signed range is from -
> 2,147,483,647 to 2,147,483,648.  However, may I suggest the following
> (which I know included in the GPL'd cfengine sources at some point):

This computation is already included in GNU make (in Git) as the
constant INTSTR_LENGTH (which uses sizeof(uintmax_t) as the basis),
from a previous, similar suggestion you made a few months ago :).

I modified this and a few other buffers that used static lengths, to
use the INTSTR_LENGTH macro.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]