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

Bug#576030: gcc-4.3: wcstoll returns only the value for 32bit.



On Wed, Mar 31, 2010 at 11:32:50PM +0900, Hikaru MIYAGI wrote:
> Package: gcc-4.3
> Version: 4.3.2-1.1
> Severity: important
> 
> wcstoll returns only the value for 32bit.
> For instance, wcstoll(L"100000000", NULL, 16) returns 0
> though it is sure to become 4294967296.
> 

This is not reproducible here. Are you sure the wcstoll is correctly
declared?

You can verify that it is correctly declared by compiling with -Wall. If
it is not the case, verify that your program should include <wchar.h> and
that you use either use -std=c99 or -D_GNU_SOURCE to compile it.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: