This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
8 bytes into 2 bytes fits ?
- To: egcs-bugs at cygnus dot com
- Subject: 8 bytes into 2 bytes fits ?
- From: David C Binderman <dcb at pncl dot co dot uk>
- Date: Wed, 2 Sep 1998 19:38:33 +0100 (BST)
Hello there,
// surely pointers can only be cast to types big enough to hold
// them. This code compiles ok on Linux/Alpha egcs-980824, even with
// -ansi -pedantic-errors
void
f( char * p)
{
short s = (short) p;
}
Regards
David C Binderman MSc BSc +44 1293 534847 dcb@pncl.co.uk