fixed bug amb331 (compiler freeze on certain arrays)
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40848
This commit is contained in:
parent
cf889d1346
commit
8a086fa820
@ -2449,8 +2449,7 @@ static cell calc_arraysize(int dim[],int numdim,int cur)
|
||||
return 0;
|
||||
subsize=calc_arraysize(dim,numdim,cur+1);
|
||||
newsize=dim[cur]+dim[cur]*subsize;
|
||||
if ((ucell)subsize>=CELL_MAX || newsize>=CELL_MAX || newsize<(ucell)subsize
|
||||
|| newsize*sizeof(cell)>=CELL_MAX)
|
||||
if ((ucell)subsize>=CELL_MAX || newsize>=CELL_MAX || newsize*sizeof(cell)>=CELL_MAX)
|
||||
return CELL_MAX;
|
||||
return newsize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user