In GCC, I got the following error:
aes.c: In the function 'copy_block:
aes.c: 278: error: lvalue required as an increment operand
aes.c: 278: error: lvalue is required as an increment operand
This is a piece of code:
static void copy_block( void * d, void *s, uint_8t nn ) { while( nn-- ) *((uint_8t*)d)++ = *((uint_8t*)s)++; }
I tried to change it to a compiled version, but, unfortunately, for me as a Java programmer, it is unclear what actually happens here.
Maybe someone has an idea how I can change the source that it compiles into GCC, or someone has an idea of โโwhat is going on in detail here. It seems strange to me with dereferencing the value of the left hand, but somehow it works fine in Visual C ++.
This is a small inherited program that I have to connect to a Linux machine.
Thank you for your help.
source share