- const unsigned a0 = block[0+i*8] + block[4+i*8];
- const unsigned a2 = block[0+i*8] - block[4+i*8];
- const unsigned a4 = (block[2+i*8]>>1) - block[6+i*8];
- const unsigned a6 = (block[6+i*8]>>1) + block[2+i*8];
+ const unsigned a0 = block[0+i*8] + (unsigned)block[4+i*8];
+ const unsigned a2 = block[0+i*8] - (unsigned)block[4+i*8];
+ const unsigned a4 = (block[2+i*8]>>1) - (unsigned)block[6+i*8];
+ const unsigned a6 = (block[6+i*8]>>1) + (unsigned)block[2+i*8];