We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
In my program which initially works fine, after i initialize 1 or more memory space for variables, it shows "Warning 52: Value has been truncated into 8 bits"!
Although it is just a warning, and won't affect the compilation, but it causes the application works unexpectedly.
Can you pls advice? Thank you.
regards, delphia
How about posting the code that causes this warning ?
"Although it is just a warning, and won't affect the compilation, but it causes the application works unexpectedly" Warnings are import becuase it can compile, just maybe not the way you might expect. There should be no warnings you do not understand.
Warning 52 is an assembler warning not a compiler warning.
It means what it says. You are tring to use a value that is bigger than 8 bit where 8 bits is expected. Most likly a constant value. The assmbler thinks you are OK with that and truncated the high order bits.