Fix alignment of structs containing real

This commit is contained in:
Alexey Prokhin
2011-02-25 22:29:43 +03:00
parent 1653abbbc9
commit 3bb91c7513
2 changed files with 11 additions and 8 deletions

View File

@@ -322,24 +322,24 @@ void Type::init()
#endif
Tsize_t = Tuns32;
Tptrdiff_t = Tint32;
PTRSIZE = 4;
PTRSIZE = 4;
}
// set real size and padding
if (global.params.cpu == ARCHx86)
{
REALSIZE = 12;
REALPAD = 2;
REALSIZE = 12;
REALPAD = 2;
}
else if (global.params.cpu == ARCHx86_64)
{
REALSIZE = 16;
REALPAD = 6;
REALSIZE = 16;
REALPAD = 6;
}
else
{
REALSIZE = 8;
REALPAD = 0;
REALSIZE = 8;
REALPAD = 0;
}
}