Commit 321d2801 by Michael Meissner

Do not divide by sizes by 0.

From-SVN: r4413
parent e6e1cf4c
...@@ -3297,7 +3297,12 @@ parse_def (name_start) ...@@ -3297,7 +3297,12 @@ parse_def (name_start)
t.num_sizes = i + 1; t.num_sizes = i + 1;
for ( i--; i >= 0; i-- ) for ( i--; i >= 0; i-- )
{
if (t.dimensions[ i+1 ])
t.sizes[ i ] = t.sizes[ i+1 ] / t.dimensions[ i+1 ]; t.sizes[ i ] = t.sizes[ i+1 ] / t.dimensions[ i+1 ];
else
t.sizes[ i ] = t.sizes[ i+1 ];
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment