Hi,
Attached is a patch that fixes a bug
for miscounting total number of curly braces in output string in array_out.
Example1
{{1,2,3},{4,5,6}} -> dims[0] = 2, dims[1]= 3
- Without the patch
8
- After
3
Example2
N size one-dimensional array -> dims[0] = N
- Without the patch
N
- After
1
I used gdb to confirm the above behavior.
Cheers,
Keiichi Hirobe