vc: word align automatics

theres code that assumes one can dereference a char[] buffer on the stack
as a long (ghostscript gxblend.c), so make sure all automatics on the stack
are word aligned. this is not strictrly neccesary, but avoids some
trouble with unportable code.
front
cinap_lenrek 2015-08-16 19:29:16 +02:00
parent 2fe2ffe813
commit 988d326f32
1 changed files with 1 additions and 0 deletions

View File

@ -587,6 +587,7 @@ align(long i, Type *t, int op)
case Aaut3: /* total allign of automatic */
o = align(o, t, Ael1);
o = align(o, t, Ael2);
w = SZ_LONG;
break;
}
o = round(o, w);