Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2005-11-17 17:48:11 +0300
committerChris Want <cwant@ualberta.ca>2005-11-17 17:48:11 +0300
commitb44ba190d2626ddc43b754a896426fd5c5f04000 (patch)
treefb6edae94770fc11c818623680782a74ccb26bcd /intern
parentf0593ea8e8daa7f1e8f3b25f240cda020025698c (diff)
Fix for bug #3414 provided by Lewis Saunders.
It appears that removing the 'int level' field from the MemHead struct caused alignment issues for gcc builds of blender on Irix (zr, who removed this field, commented that this problem might occur, and sure enough it did happen). I've renamed the field from 'level' to 'pad' to reflect that it has no meaning beyond addressing alignment issues.
Diffstat (limited to 'intern')
-rw-r--r--intern/guardedalloc/intern/mallocn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c
index cae1e3f05b5..cd1917cd3c7 100644
--- a/intern/guardedalloc/intern/mallocn.c
+++ b/intern/guardedalloc/intern/mallocn.c
@@ -66,8 +66,8 @@ typedef struct MemHead {
struct MemHead *next,*prev;
char * name;
char * nextname;
- /* int level; */ /* historical, can be removed, but check alignment issues - zr */
int tag2;
+ int pad; /* keep this in, due to alignment issues (e.g., irix/gcc) - Hos */
} MemHead;
typedef struct MemTail {