Do not divide by sizes by 0.

From-SVN: r4413
This commit is contained in:
Michael Meissner 1993-05-10 19:58:26 +00:00
parent e6e1cf4ce3
commit 321d280111

View File

@ -3297,7 +3297,12 @@ parse_def (name_start)
t.num_sizes = i + 1;
for ( i--; i >= 0; i-- )
t.sizes[ i ] = t.sizes[ i+1 ] / t.dimensions[ i+1 ];
{
if (t.dimensions[ i+1 ])
t.sizes[ i ] = t.sizes[ i+1 ] / t.dimensions[ i+1 ];
else
t.sizes[ i ] = t.sizes[ i+1 ];
}
}
}