This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFD: C pointer conversions that differ in unsignedness


On Mon, Dec 05, 2005 at 03:27:56PM +0100, schopper-gcc@bfw-online.de wrote:
> Shouldn't the compiler behave in the following way, concerning the signedness
> of pointer arguments?
> 
>   void f (long *l, signed long *sl, unsigned long *ul);

"long" and "signed long" are the same type.  You are confused about how
C and C++ are defined.  Same with "int" and "signed int".  Only for "char"
are things different; it is implementation-defined (can differ from
platform to platform) whether "char" is signed or not.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]