This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
possible bug in ccs compiler
i use the test code
signed char actal[8]; memset(actual,0,8); actual[7]=-127;
unsigned long long a= (unsigned long long)actual;
the contend of a reads(debugger) Hex:0x0000000020021AF8
where hex 0x8100000000000000 would be expected
most troubling
as
if ((unsigned long long)actual==0x8100000000000000) Report("\n\rmatch the hit\r\n "); does not print as ok
does not print as anything.... i must do something wrong......
I need a good weekend anyway ....
all help apreciated
You are assigning the address of the array to the variable a. Try this instead:
unsigned long long a = *(unsigned long long *)actual;