bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] 'lib/canonical*.h' may have data type conflicts.


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] 'lib/canonical*.h' may have data type conflicts.
Date: Tue, 11 Jul 2023 13:54:17 +0200

Hi,

> Member in array 'all_canonical' 's type is 'unsigned short', but canonical 
> data's type is 'int'.
> It is OK in C, but when I moved it to C++, AppleClang in macOS X x86_64 
> reported this type conflict error.

When you temporarily change the array element type to 'int',
then compile the code,
then look at the values in this array:
- What is the smallest value? Is it < 0 or >= 0?
- What is the largest value? Is it >= 65536 or < 65536?

Bruno






reply via email to

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