gtk-glade: Fix a couple of off-by-one reported by cppcheck
This commit is contained in:
parent
c4c9cf60f6
commit
b3122f97ee
|
@ -66,7 +66,7 @@ static void wtools_1_update () {
|
|||
static u32 mem[NBR_IO_REGS];
|
||||
|
||||
static void update_regs_fast(){
|
||||
char text[10];
|
||||
char text[11];
|
||||
int i; u32 w, m;
|
||||
for( i = 0; i < NBR_IO_REGS; i++ )
|
||||
{
|
||||
|
|
|
@ -174,7 +174,7 @@ static void refresh() {
|
|||
if (pal) {
|
||||
pal += palnum*16;
|
||||
for (tile_n=0; tile_n<1024; tile_n++) {
|
||||
for (index=0; index<64; index++) {
|
||||
for (index=0; index<64-1; index++) {
|
||||
if (index & 1) continue;
|
||||
palette_16[index] =pal[*index16 & 15];
|
||||
palette_16[index+1]=pal[*index16 >> 4];
|
||||
|
|
Loading…
Reference in New Issue