From d01f63431d7a99f8c0182d7c27713200c7cf5645 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Fri, 25 Feb 2011 23:15:17 +0300 Subject: [PATCH] Fix regression on 32 bit --- dmd2/class.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmd2/class.c b/dmd2/class.c index 3df7d73f..2bef13c4 100644 --- a/dmd2/class.c +++ b/dmd2/class.c @@ -738,7 +738,8 @@ void ClassDeclaration::semantic(Scope *sc) } structsize = sc->offset; #if IN_LLVM - structsize = (structsize + structalign - 1) & ~(structalign - 1); + if (global.params.is64bit) + structsize = (structsize + structalign - 1) & ~(structalign - 1); #endif sizeok = 1; Module::dprogress++;