From 988d326f321c24b7546164841f410aa93516a49d Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 16 Aug 2015 19:29:16 +0200 Subject: 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. --- sys/src/cmd/vc/swt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/src/cmd/vc/swt.c b/sys/src/cmd/vc/swt.c index 17c544dde..1384cfcda 100644 --- a/sys/src/cmd/vc/swt.c +++ b/sys/src/cmd/vc/swt.c @@ -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); -- cgit v1.2.3