Why does this not work?
flamencofantasy via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 17 06:03:04 PDT 2014
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);
}
More information about the Digitalmars-d-learn
mailing list