Skip to content

Commit

Permalink
fix a stupid typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Oct 24, 2009
1 parent 6ecabdb commit ab6446f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/pmc/NumMatrix2D.pmc
Expand Up @@ -44,7 +44,7 @@ resize_matrix(PARROT_INTERP, PMC * self, INTVAL x, INTVAL y)
}


pmclass NumMatrix2D auto_attrs {
pmclass NumMatrix2D dynpmc auto_attrs {
ATTR FLOATVAL * storage;
ATTR INTVAL x;
ATTR INTVAL y;
Expand All @@ -55,7 +55,7 @@ pmclass NumMatrix2D auto_attrs {

VTABLE FLOATVAL get_number_keyed(PMC * key) {
INTVAL x, y, x_size, y_size;
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX(SELF);
x_size = attrs->x;
y_size = attrs->y;
GET_INDICES_FROM_KEY(INTERP, key, x, y);
Expand All @@ -67,7 +67,7 @@ pmclass NumMatrix2D auto_attrs {

VTABLE void set_number_keyed(PMC * key, FLOATVAL value) {
INTVAL x, y, x_size, y_size;
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX(SELF);
x_size = attrs->x;
y_size = attrs->y;
GET_INDICES_FROM_KEY(INTERP, key, x, y);
Expand Down
9 changes: 6 additions & 3 deletions src/pmc/NumMatrix2D.pmc~
Expand Up @@ -14,6 +14,9 @@
#define INDEX_MIN(a, b) (((a) <= (b))?(a):(b))
#define INDEX_MAX(a, b) (((a) >= (b))?(a):(b))

/* Resize the matrix internal storage to be able to hold a point at position
(x, y). The matrix grows but does not shrink. New spaces in the matrix
are initialized to 0.0 */
void
resize_matrix(PARROT_INTERP, PMC * self, INTVAL x, INTVAL y)
{
Expand Down Expand Up @@ -41,7 +44,7 @@ resize_matrix(PARROT_INTERP, PMC * self, INTVAL x, INTVAL y)
}


pmclass NumMatrix2D auto_attrs {
pmclass NumMatrix2D dynpmc auto_attrs {
ATTR FLOATVAL * storage;
ATTR INTVAL x;
ATTR INTVAL y;
Expand All @@ -52,7 +55,7 @@ pmclass NumMatrix2D auto_attrs {

VTABLE FLOATVAL get_number_keyed(PMC * key) {
INTVAL x, y, x_size, y_size;
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX(SELF);
x_size = attrs->x;
y_size = attrs->y;
GET_INDICES_FROM_KEY(INTERP, key, x, y);
Expand All @@ -64,7 +67,7 @@ pmclass NumMatrix2D auto_attrs {

VTABLE void set_number_keyed(PMC * key, FLOATVAL value) {
INTVAL x, y, x_size, y_size;
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX
Parrot_NumMatrix2D_Attributes * const attrs = PARROT_NUM_MATRIX(SELF);
x_size = attrs->x;
y_size = attrs->y;
GET_INDICES_FROM_KEY(INTERP, key, x, y);
Expand Down

0 comments on commit ab6446f

Please sign in to comment.