On Wed, May 4, 2011 at 7:31 PM, Erik Petrich <epetr...@ivorytower.norman.ok.us> wrote: > > > long_counter = (unsigned int)(char_counter[0] | (char_counter[1] << 8)) | > ((unsigned long)(char_counter[2] | (char_counter[3] << 8)) << 16);
I hope the first (unsigned int) cast isn't necessary, because the char_counter[1] << 8 would overflow if it wasn't implicitly an int. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user