solarwind wrote: > It's funny because he's incrementing an unsigned int and treating as a > signed int. Why do you think that? I took it to be a signed 16 bit number. 0 = 0000 0000 0000 0000 32767 = 0111 1111 1111 1111 -32768 = 1000 0000 0000 0000 -32767 = 1000 0000 0000 0001 - 1 = 1111 1111 1111 1111 -- Linux Home Automation Neil Cherry ncherry@linuxha.com http://www.linuxha.com/ Main site http://linuxha.blogspot.com/ My HA Blog Author of: Linux Smart Homes For Dummies -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist