Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!csd4.csd.uwm.edu!markh From: markh@csd4.csd.uwm.edu (Mark William Hopkins) Newsgroups: comp.lang.c Subject: How come << falls through at 16 on a 32-bit integer? Message-ID: <11004@uwm.edu> Date: 13 Apr 91 01:21:56 GMT Sender: news@uwm.edu Organization: University of Wisconsin - Milwaukee Lines: 12 Why am I getting 0 for output here when unsigned long's are 32 bits with the Quick C Version 2.5 compiler? (Casting everything to unsigned long does not help). * #include * main() { * unsigned long M = 34; * printf("%08x\n", M << 16); * } This is a compiler bug, according to my understanding of the Quick C manual and C language.