From c757c66f92e5bfacb4c3907fe0b667a41b8625a3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 28 Apr 2010 08:15:26 +0000 Subject: 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 --- intern/guardedalloc/intern/mallocn.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'intern/guardedalloc') diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 78ae7f07019..624687735dc 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -82,11 +82,7 @@ typedef struct localListBase /* 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; -- cgit v1.2.3