|
HD6475328-CP10 Datasheet, PDF (99/459 Pages) Hitachi Semiconductor – original Hitachi CMOS microcomputer unit (MCU) | |||
|
◁ |
 A one-byte variable (char or unsigned char) is declared as a register variable.
 The variable declared as in  is squared by compound substitution
Example: register char a;
a *= a;
⢠Solution
The problem can be avoided as follows:
 In the example above, do not declare the variable (a) as a register variable.
Example: register char a;
â char a;
a *= a;
a *= a;
 When squaring one-byte data, do not use compound substitution. Code as follows:
Example: a *= a;
â
a = a * a;
80
|
▷ |