[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28485] trunk/blender/intern/guardedalloc/ intern/mallocn.c: reverting 28469, there is no use in using a long, while the allocation functions only accepts an int.
Campbell Barton
ideasman42 at gmail.com
Wed Apr 28 10:15:26 CEST 2010
Revision: 28485
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28485
Author: campbellbarton
Date: 2010-04-28 10:15:26 +0200 (Wed, 28 Apr 2010)
Log Message:
-----------
reverting 28469, there is no use in using a long, while the allocation functions only accepts an int.
- only wastes 4 bytes per alloc.
Also would be most correct to use size_t
Modified Paths:
--------------
trunk/blender/intern/guardedalloc/intern/mallocn.c
Modified: trunk/blender/intern/guardedalloc/intern/mallocn.c
===================================================================
--- trunk/blender/intern/guardedalloc/intern/mallocn.c 2010-04-28 08:02:51 UTC (rev 28484)
+++ trunk/blender/intern/guardedalloc/intern/mallocn.c 2010-04-28 08:15:26 UTC (rev 28485)
@@ -82,11 +82,7 @@
/* note: keep this struct aligned (e.g., irix/gcc) - Hos */
typedef struct MemHead {
int tag1;
-#if defined(WIN64)
- unsigned long long len;
-#else
- unsigned long len;
-#endif
+ unsigned int len;
struct MemHead *next,*prev;
const char * name;
const char * nextname;
More information about the Bf-blender-cvs
mailing list