diff options
author | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2010-04-27 22:21:49 +0400 |
---|---|---|
committer | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2010-04-27 22:21:49 +0400 |
commit | d6b71243c25f404e36cc81a10fddab597f51aeba (patch) | |
tree | 2643f513fe6ba459eb8aa273eec1b608fc0bbeac /intern | |
parent | c80d0f1f8547b4b39f7aeb1b67f141cc3faedb97 (diff) |
Make len portable (as best as can tested with a 32 bit machine).
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 624687735dc..78ae7f07019 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -82,7 +82,11 @@ typedef struct localListBase /* note: keep this struct aligned (e.g., irix/gcc) - Hos */ typedef struct MemHead { int tag1; - unsigned int len; +#if defined(WIN64) + unsigned long long len; +#else + unsigned long len; +#endif struct MemHead *next,*prev; const char * name; const char * nextname; |