the result of ubyte + ubyte is int I believe. Try; void func( int c ) { ubyte a;
a = cast(ubyte)(cast(ubyte)c + cast(ubyte)c); }
the result of ubyte + ubyte is int I believe. Try; void func( int c ) { ubyte a;
a = cast(ubyte)(cast(ubyte)c + cast(ubyte)c); }