diff runtime/object.c @ 63:04baa003de5a

Merged latest changes with better C branch
author Mike Pavone <pavone@retrodev.com>
date Wed, 05 May 2010 22:12:23 -0400
parents b218af069da7 3e20ed8959c4
children a68e6828d896
line wrap: on
line diff
--- a/runtime/object.c	Sat Oct 10 16:43:37 2009 -0400
+++ b/runtime/object.c	Wed May 05 22:12:23 2010 -0400
@@ -294,10 +294,10 @@
 	blueprint * bp = get_blueprint(obj);
 	if(bp->cleanup)
 		bp->cleanup(obj);
-	ffree(multi, sizeof(multi) + multi->size, manager);
+	ffree(multi, sizeof(multisize) + multi->size, manager);
 }
 
-blueprint * new_blueprint(uint32_t type, uint32_t size, special_func init, special_func copy, special_func cleanup)
+blueprint * new_blueprint(uint32_t type, int32_t size, special_func init, special_func copy, special_func cleanup)
 {
 	blueprint * bp = malloc(sizeof(blueprint));
 	//dirty hack!, move elsewhere
@@ -322,7 +322,7 @@
 	return bp;
 }
 
-blueprint * register_type_byid(uint32_t type, uint32_t size, special_func init, special_func copy, special_func cleanup)
+blueprint * register_type_byid(uint32_t type, int32_t size, special_func init, special_func copy, special_func cleanup)
 {
 	check_type_storage(type);
 	if(registered_types[type])