[svn:parrot] r49229 - branches/gc_massacre/src/gc
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Sep 22 03:11:51 UTC 2010
Author: bacek
Date: Wed Sep 22 03:11:51 2010
New Revision: 49229
URL: https://trac.parrot.org/parrot/changeset/49229
Log:
Explicit cast allocated memory. Fix c++ build.
Modified:
branches/gc_massacre/src/gc/fixed_allocator.c
Modified: branches/gc_massacre/src/gc/fixed_allocator.c
==============================================================================
--- branches/gc_massacre/src/gc/fixed_allocator.c Wed Sep 22 03:01:55 2010 (r49228)
+++ branches/gc_massacre/src/gc/fixed_allocator.c Wed Sep 22 03:11:51 2010 (r49229)
@@ -328,14 +328,14 @@
Pool_Allocator_Free_List *item;
if (pool->free_list)
- item = get_free_list_item(pool);
+ item = (Pool_Allocator_Free_List*)get_free_list_item(pool);
else if (pool->newfree)
- item = get_newfree_list_item(pool);
+ item = (Pool_Allocator_Free_List*)get_newfree_list_item(pool);
else {
allocate_new_pool_arena(pool);
- item = get_newfree_list_item(pool);
+ item = (Pool_Allocator_Free_List*)get_newfree_list_item(pool);
}
--pool->num_free_objects;
More information about the parrot-commits
mailing list