Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing unnecessary and noisy casts

  • Loading branch information...
commit 783b189abdaa7f31b17d6b840d53a730ca601ab4 1 parent fb20fdc
@petdance petdance authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/gc/alloc_resources.c
  2. +1 −1  src/string/api.c
View
4 src/gc/alloc_resources.c
@@ -312,7 +312,7 @@ check_fixed_size_obj_pool(ARGIN(const Fixed_Size_Pool *pool))
--last_free_list_count;
else {
/* next item on free list should also be flagged as free item */
- pobj_walker = (GC_MS_PObj_Wrapper*)pobj_walker->next_ptr;
+ pobj_walker = pobj_walker->next_ptr;
PARROT_ASSERT(PObj_on_free_list_TEST((PObj*)pobj_walker));
}
}
@@ -336,7 +336,7 @@ check_fixed_size_obj_pool(ARGIN(const Fixed_Size_Pool *pool))
PARROT_ASSERT(pool->end_arena_memory > (size_t)pobj_walker);
PARROT_ASSERT(PObj_on_free_list_TEST((PObj*)pobj_walker));
--free_objects;
- pobj_walker = (GC_MS_PObj_Wrapper*)pobj_walker->next_ptr;
+ pobj_walker = pobj_walker->next_ptr;
PARROT_ASSERT(--count);
}
View
2  src/string/api.c
@@ -613,7 +613,7 @@ Parrot_str_new_constant(PARROT_INTERP, ARGIN(const char *buffer))
{
ASSERT_ARGS(Parrot_str_new_constant)
DECL_CONST_CAST;
- Hash * const cstring_cache = (Hash *)interp->const_cstring_hash;
+ Hash * const cstring_cache = interp->const_cstring_hash;
STRING *s = (STRING *)Parrot_hash_get(interp,
cstring_cache, buffer);
Please sign in to comment.
Something went wrong with that request. Please try again.