7 void PTBL (signed char col
, signed char row
, unsigned char spN
)
14 signed char C
[4+1][2+1];
23 for( i
=0; i
<=36; i
+=4 )
25 for( j
=0; j
<=23; j
+=8 )
35 C
[ 1][1]=10; C
[ 1][2]=10;
36 C
[ 2][1]=10; C
[ 2][2]=10;
37 C
[ 3][1]=10; C
[ 3][2]=10;
38 C
[ 4][1]=10; C
[ 4][2]=10;
40 for(i
=4; i
!=0; i
--) // <-- BUG IS HERE
42 /* the calculation of the address of C[i] is pulled out of the loop
43 and on top of that the local (out of scope) unsigned char i is used
44 instead of the global signed char i */
61 for(i
= 1; i
<= 4; i
++)