Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes multi-dimesional array initilization bug
Solves the bug described in issue #117 new [][2][3] = { //default values }; The compiler does not create enough room for the indirection tables and hence adjust_indirectiontables overwrites the default values leaving the array wrongly initilized. Adds a generic code which works for any n-dimensional arrays (n = 1, 2,3,4,5... infinity). The code fixes the issue for any dimension but the number of dimensions is limited to 4 (sDIMEN_MAX). A review of this code won't be required if the limit is increased in the future.
- Loading branch information