From d6b71243c25f404e36cc81a10fddab597f51aeba Mon Sep 17 00:00:00 2001 From: "Guillermo S. Romero" Date: Tue, 27 Apr 2010 18:21:49 +0000 Subject: Make len portable (as best as can tested with a 32 bit machine). --- intern/guardedalloc/intern/mallocn.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'intern/guardedalloc') 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; -- cgit v1.2.3