bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] quoteargs: fix comparison between signed and unsigned warnin


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.

Attachment: 0001-quotearg-pacify-compiler-re-unsigned.txt
Description: Text document


reply via email to

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