Skip to content
This repository
Browse code

removing unnecessary and noisy casts

  • Loading branch information...
commit 783b189abdaa7f31b17d6b840d53a730ca601ab4 1 parent fb20fdc
Andy Lester authored March 27, 2012
4  src/gc/alloc_resources.c
@@ -312,7 +312,7 @@ check_fixed_size_obj_pool(ARGIN(const Fixed_Size_Pool *pool))
312 312
                     --last_free_list_count;
313 313
                 else {
314 314
                     /* next item on free list should also be flagged as free item */
315  
-                    pobj_walker = (GC_MS_PObj_Wrapper*)pobj_walker->next_ptr;
  315
+                    pobj_walker = pobj_walker->next_ptr;
316 316
                     PARROT_ASSERT(PObj_on_free_list_TEST((PObj*)pobj_walker));
317 317
                 }
318 318
             }
@@ -336,7 +336,7 @@ check_fixed_size_obj_pool(ARGIN(const Fixed_Size_Pool *pool))
336 336
         PARROT_ASSERT(pool->end_arena_memory > (size_t)pobj_walker);
337 337
         PARROT_ASSERT(PObj_on_free_list_TEST((PObj*)pobj_walker));
338 338
         --free_objects;
339  
-        pobj_walker = (GC_MS_PObj_Wrapper*)pobj_walker->next_ptr;
  339
+        pobj_walker = pobj_walker->next_ptr;
340 340
         PARROT_ASSERT(--count);
341 341
     }
342 342
 
2  src/string/api.c
@@ -613,7 +613,7 @@ Parrot_str_new_constant(PARROT_INTERP, ARGIN(const char *buffer))
613 613
 {
614 614
     ASSERT_ARGS(Parrot_str_new_constant)
615 615
     DECL_CONST_CAST;
616  
-    Hash   * const cstring_cache = (Hash *)interp->const_cstring_hash;
  616
+    Hash   * const cstring_cache = interp->const_cstring_hash;
617 617
     STRING *s                    = (STRING *)Parrot_hash_get(interp,
618 618
                                         cstring_cache, buffer);
619 619
 

0 notes on commit 783b189

Please sign in to comment.
Something went wrong with that request. Please try again.