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);
}

Reply via email to