SCP: Compiler suggested type cast

This commit is contained in:
Mark Pizzolato 2016-08-31 10:23:54 -07:00
parent dc2bbe5a40
commit f03df970ea

2
scp.c
View file

@ -9049,7 +9049,7 @@ if ((sim_brk_ins == sim_brk_ent) ||
sim_brk_tab[i] = sim_brk_tab[i - 1]; sim_brk_tab[i] = sim_brk_tab[i - 1];
sim_brk_tab[sim_brk_ins] = NULL; sim_brk_tab[sim_brk_ins] = NULL;
} }
bp = calloc (1, sizeof (*bp)); bp = (BRKTAB *)calloc (1, sizeof (*bp));
bp->next = sim_brk_tab[sim_brk_ins]; bp->next = sim_brk_tab[sim_brk_ins];
sim_brk_tab[sim_brk_ins] = bp; sim_brk_tab[sim_brk_ins] = bp;
if (bp->next == NULL) if (bp->next == NULL)