On Mar 23, 2009, at 5:28 AM, Vitaliy wrote: > Say you have this code: > > long int temp; > int shift; > > shift = 16; > > temp = 0x00000001 << shift; I don't think leading zeros will succeed in making the compiler believe that an int is a long. Try: temp = 1L << shift; BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist