I'm doing the following:
static uint32 myReadValue;
static uint32 myNewValue;
DoRead(10, &myReadValue);
myNewValue = (uint32)(&myReadValue) | (3 << 8);
whereby
void DoRead(SomeEnumType, void * Ptr)
{
// some functionality
}
The compiler gives me the messages:
"conversion of integer to pointer at assignment" on the assignment of "myNewValue"
I don't see exactly what I'm doing wrong there. Any idea?