libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] [PATCH 07/11] ppc64: remove compile warnings from


From: Mike Frysinger
Subject: Re: [Libunwind-devel] [PATCH 07/11] ppc64: remove compile warnings from wchar test.
Date: Mon, 10 Sep 2012 21:17:15 -0400

On Mon, Sep 10, 2012 at 8:21 PM, Cody P Schafer wrote:
> -  int i;
> +  unsigned i;
>    int ret;
>
> -  printf("wcslen(wstring) = %d\n", wcslen(wstring));
> +  printf("wcslen(wstring) = %lu\n", (long unsigned) wcslen(wstring));

NAK: wcslen returns a size_t.  you should use that type for "i", and
then use %zu.
-mike



reply via email to

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