This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: https://gcc.gnu.org/gcc-7/changes.html
- From: Marek Polacek <polacek at redhat dot com>
- To: Jonny Grant <jg at jguk dot org>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Tue, 11 Jul 2017 18:56:07 +0200
- Subject: Re: https://gcc.gnu.org/gcc-7/changes.html
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=polacek at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 36885C04B92E
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 36885C04B92E
- References: <d6e7c052-38b3-006d-9d14-d232f392e3b2@jguk.org>
On Tue, Jul 11, 2017 at 09:51:19AM -0700, Jonny Grant wrote:
> Hello
> https://gcc.gnu.org/gcc-7/changes.html
>
> snprintf (d, sizeof d, "%#02x", x & 0xff);
>
> ^^
> Should be: sizeof(d) ?
Why? Both are correct.
Marek