From f786b6b0f17fa79c2e93a277d873f5b8d551f2ae Mon Sep 17 00:00:00 2001 From: Whiteknight Date: Mon, 21 Jun 2010 09:30:54 -0400 Subject: [PATCH] small fixes --- src/pmc/nummatrix2d.pmc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pmc/nummatrix2d.pmc b/src/pmc/nummatrix2d.pmc index f84f622..e29bd16 100644 --- a/src/pmc/nummatrix2d.pmc +++ b/src/pmc/nummatrix2d.pmc @@ -213,7 +213,7 @@ pmclass NumMatrix2D dynpmc auto_attrs provides matrix { const INTVAL total_size = attrs->rows * attrs->cols; if (key >= total_size) { Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_OUT_OF_BOUNDS, - "NumMatrix2D: Matrix dimensions must match in add."); + "NumMatrix2D: Matrix dimensions must match in add."); } return attrs->storage[key]; } @@ -459,7 +459,7 @@ pmclass NumMatrix2D dynpmc auto_attrs provides matrix { */ else { Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_UNIMPLEMENTED, - "parrot-linear-algebra: Method multiply not implemented for " + PLATYPENAME ": Method multiply not implemented for " "this combination of flags."); } @@ -689,9 +689,9 @@ Transposes the matrix. SWAP_XY(attrs); if (transposed) - attrs->flags -= FLAG_TRANSPOSED; + FLAG_SET(attrs->flags, FLAG_TRANSPOSED); else - attrs->flags += FLAG_TRANSPOSED; + FLAG_CLEAR(attrs->flags, FLAG_TRANSPOSED); transposed = !transposed; RETURN(INTVAL transposed); }