Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix a bug in complexmatrix2d where the matrix is being converted inco…
…rrectly to a string
  • Loading branch information
Whiteknight committed Aug 17, 2010
1 parent 88d5f3c commit f1eae20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmc/complexmatrix2d.pmc
Expand Up @@ -343,8 +343,8 @@ pmclass ComplexMatrix2D dynpmc auto_attrs provides matrix {
}
}
else {
for (cols = 0; cols < cols_size; ++cols) {
for (rows = 0; rows < rows_size; ++rows) {
for (rows = 0; rows < rows_size; ++rows) {
for (cols = 0; cols < cols_size; ++cols) {
const FLOATVAL real = R_ITEM_XY_ROWMAJOR(s, rows_size, cols_size, rows, cols);
const FLOATVAL imag = I_ITEM_XY_ROWMAJOR(s, rows_size, cols_size, rows, cols);
STRING * const item = Parrot_sprintf_c(INTERP, "\t%f%+fi", real, imag);
Expand Down

0 comments on commit f1eae20

Please sign in to comment.