|
From: | Paul Eggert |
Subject: | Re: [PATCH] quoteargs: fix comparison between signed and unsigned warning |
Date: | Thu, 19 Oct 2017 13:05:51 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 10/19/2017 12:42 PM, Sami Kerola wrote:
- if (MIN (INT_MAX, MIN (PTRDIFF_MAX, SIZE_MAX) / sizeof *sv) <= n) + if (MIN (INT_MAX, MIN (PTRDIFF_MAX, SIZE_MAX) / sizeof *sv) <= (size_t) n)
Thanks for letting us know about the problem. I'd rather avoid casts when possible, so I installed the attached patch instead.
0001-quotearg-pacify-compiler-re-unsigned.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |