diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-28 12:15:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-28 12:15:26 +0400 |
commit | c757c66f92e5bfacb4c3907fe0b667a41b8625a3 (patch) | |
tree | eb50058bc1c3fad1a256724391708d64822b5c12 | |
parent | 5982662e231c17d9779b4fb67c48beb8aea2baab (diff) |
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
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |