Skip to content

Commit

Permalink
codingstd fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benabik committed Oct 20, 2011
1 parent 65bd320 commit f55a488
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion PBC_COMPAT
Expand Up @@ -28,7 +28,7 @@

# please insert tab separated entries at the top of the list

12.0 2011.10.18 dukeleto released 3.9.0
12.0 2011.10.18 dukeleto released 3.9.0
11.0 2011.07.19 jkeenan released 3.6.0
10.0 2011.01.18 cotto released 3.0.0
9.0 2010.10.19 gerd released 2.9.0
Expand Down
6 changes: 3 additions & 3 deletions src/hash.c
Expand Up @@ -1501,7 +1501,8 @@ Parrot_hash_update(PARROT_INTERP, ARGMOD(Hash *hash), ARGIN(Hash *other))
ASSERT_ARGS(Parrot_hash_update)
if (hash->key_type == other->key_type && hash->entry_type == other->entry_type) {
parrot_hash_iterate(other, Parrot_hash_put(interp, hash, _bucket->key, _bucket->value););
} else {
}
else {
parrot_hash_iterate(other,
void *key = _bucket->key;
void *value = _bucket->value;
Expand Down Expand Up @@ -1541,8 +1542,7 @@ Parrot_hash_update(PARROT_INTERP, ARGMOD(Hash *hash), ARGIN(Hash *other))
break;
}
}
Parrot_hash_put(interp, hash, key, value);
);
Parrot_hash_put(interp, hash, key, value););
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/pmc/fixedfloatarray.pmc
Expand Up @@ -514,7 +514,7 @@ Reverse the contents of the array.

METHOD reverse() {
INTVAL n;
GET_ATTR_size(INTERP, SELF, n);
GET_ATTR_size(INTERP, SELF, n);
if (n > 1) {
FLOATVAL val;
FLOATVAL *data;
Expand All @@ -527,7 +527,7 @@ Reverse the contents of the array.
data[n] = val;
}
}
}
}

}

Expand Down
2 changes: 1 addition & 1 deletion src/pmc/fixedintegerarray.pmc
Expand Up @@ -676,7 +676,7 @@ Reverse the contents of the array.
data[n] = val;
}
}
}
}

}

Expand Down
2 changes: 1 addition & 1 deletion src/pmc/fixedpmcarray.pmc
Expand Up @@ -79,7 +79,7 @@ Reverse the contents of the array.

*/
METHOD reverse() {
INTVAL n = SELF.elements();
INTVAL n = SELF.elements();
if (n > 1) {
PMC *val;
PMC **data = PMC_array(SELF);
Expand Down
6 changes: 4 additions & 2 deletions src/pmc/hash.pmc
Expand Up @@ -1229,8 +1229,10 @@ entries with the same key.
METHOD update(PMC *other) {
if (other->vtable->base_type == SELF->vtable->base_type
|| other->vtable->base_type == enum_class_Hash) {
Parrot_hash_update(INTERP, (Hash *)SELF.get_pointer(), (Hash *)VTABLE_get_pointer(INTERP, other));
} else {
Parrot_hash_update(INTERP, (Hash *)SELF.get_pointer(),
(Hash *)VTABLE_get_pointer(INTERP, other));
}
else {
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_UNIMPLEMENTED,
"Hash: don't know how to update from a non-Hash type");
}
Expand Down

0 comments on commit f55a488

Please sign in to comment.