bug-bash
[Top][All Lists]
Advanced

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

Re: Some compile-time warnings


From: Chet Ramey
Subject: Re: Some compile-time warnings
Date: Wed, 1 Oct 2025 11:30:19 -0400
User-agent: Mozilla Thunderbird

On 10/1/25 1:52 AM, Grisha Levit wrote:

If we are going to guard against theoretical overflow, we might as well
use the more correct allocation size limit of PTRDIFF_MAX, which will
silence this warning.

Thanks; this is pretty much the same thing Martin proposed. It's still
hypothetical, but this is a reasonable change.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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