Permalink
Browse files

removed unnecessary casts

  • Loading branch information...
1 parent da3ed58 commit d054e19f444dca04311e060ad100a0abff4f4bc5 @petdance petdance committed Apr 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gc/gc_gms.c
  2. +1 −1 src/gc/gc_ms.c
View
@@ -1854,7 +1854,7 @@ static void *
gc_gms_allocate_memory_chunk_zeroed(SHIM_INTERP, size_t size)
{
ASSERT_ARGS(gc_gms_allocate_memory_chunk_zeroed)
- void * const ptr = calloc(1, (size_t)size);
+ void * const ptr = calloc(1, size);
#ifdef DETAIL_MEMORY_DEBUG
fprintf(stderr, "Allocated %i at %p\n", size, ptr);
#endif
View
@@ -1415,7 +1415,7 @@ static void *
gc_ms_allocate_memory_chunk_zeroed(SHIM_INTERP, size_t size)
{
ASSERT_ARGS(gc_ms_allocate_memory_chunk_zeroed)
- void * const ptr = calloc(1, (size_t)size);
+ void * const ptr = calloc(1, size);
#ifdef DETAIL_MEMORY_DEBUG
fprintf(stderr, "Allocated %i at %p\n", size, ptr);
#endif

0 comments on commit d054e19

Please sign in to comment.