Remove a bunch of redundant casts.
This commit is contained in:
parent
ee6d72f3b8
commit
4f59fc9967
125 changed files with 417 additions and 432 deletions
|
@ -70,10 +70,10 @@ satmap(int x, int y, int eff, int range, int flags, int type)
|
|||
return;
|
||||
|
||||
if (!radbuf)
|
||||
radbuf = (s_char *)malloc((WORLD_Y * (WORLD_X + 1)) *
|
||||
radbuf = malloc((WORLD_Y * (WORLD_X + 1)) *
|
||||
sizeof(s_char));
|
||||
if (!rad) {
|
||||
rad = (s_char **)malloc(WORLD_Y * sizeof(s_char *));
|
||||
rad = malloc(WORLD_Y * sizeof(s_char *));
|
||||
if (rad && radbuf) {
|
||||
for (rx = 0; rx < WORLD_Y; rx++)
|
||||
rad[rx] = &radbuf[(WORLD_X + 1) * rx];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue