File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ void do_scroll()
8383 for (a = 0 ,tstart = 0 ,chars = 0 ;* tptr != '\n' ;a ++ ,chars ++ )
8484 {
8585 textline [a ]= * tptr ;
86- tstart += fonaw [* tptr ++ ]+ 2 ;
86+ tstart += fonaw [( unsigned char ) * tptr ++ ]+ 2 ;
8787 }
8888 textline [a ]= * tptr ++ ; tstart = (639 - tstart )/2 ;
8989 if (textline [0 ]== '[' )
@@ -94,9 +94,9 @@ void do_scroll()
9494 memset (scanbuf ,0 ,80 * 4 );
9595
9696 for (a = 0 ,x = tstart ;a < chars ;a ++ ,x += 2 )
97- for (b = 0 ;b < fonaw [textline [a ]];b ++ ,x ++ )
97+ for (b = 0 ;b < fonaw [( unsigned char ) textline [a ]];b ++ ,x ++ )
9898 {
99- scanbuf [x ] = endscrl_font [line ][fonap [textline [a ]]+ b ];
99+ scanbuf [x ] = endscrl_font [line ][fonap [ ( unsigned char ) textline [a ]]+ b ];
100100 /*
101101 m=mtau[x&7];
102102 if(endscrl_font[line][fonap[textline[a]]+b]&1)
@@ -160,8 +160,8 @@ void init()
160160 x ++ ;
161161 }
162162 //printf("%c: %i %i\n",*fonaorder,b,x-b);
163- fonap [* fonaorder ]= b ;
164- fonaw [* fonaorder ]= x - b ;
163+ fonap [( unsigned char ) * fonaorder ]= b ;
164+ fonaw [( unsigned char ) * fonaorder ]= x - b ;
165165 fonaorder ++ ;
166166 }
167167 // --- W32 PORT CHANGE (decompiled from final) ---
You can’t perform that action at this time.
0 commit comments