On 07/01/19 11:01 -0500, NightStrike wrote:
On Mon, Jan 7, 2019 at 10:57 AM Jonathan Wakely <jwak...@redhat.com> wrote:

On 20/12/18 17:23 -0500, Nicholas Krause wrote:
>This fixes the bug id, 71176 to use the proper known
>code print formatter type, %lu for size_t rather than
>%d which is considered best pratice for print statements.

Well the proper specifier for size_t is %zu, but since you cast to
unsigned long then %lu is right.

Wouldn't the right fix be to not cast to unsigned long and use %zu?

That was added in C99 and so is not part of C++98. GCC only requires a
C++98 compiler (and library).


Reply via email to