Re: bitwise operation and type

2013-11-20 Thread Jonathan M Davis
On Thursday, November 21, 2013 08:21:37 bioinfornatics wrote: why this fail http://www.dpaste.dzfl.pl/a6d6acf4 I want to works with ubyte - i do not want use int for manipulating these byte and consume more memory as need! All arithmetic operations on integer types (including

Re: bitwise operation and type

2013-11-20 Thread Ellery Newcomer
On 11/20/2013 11:21 PM, bioinfornatics wrote: why this fail http://www.dpaste.dzfl.pl/a6d6acf4 as with c, most of the integer operators return int for integral types smaller than int. also, this is a case where a += b does something different than a = a + b i guess the former