diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-16 19:29:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-16 19:29:16 +0200 |
commit | 988d326f321c24b7546164841f410aa93516a49d (patch) | |
tree | 8323c7c202ffd2036d26c94adb95b1afe3f9796c /sys/src/cmd/vc | |
parent | 2fe2ffe8135f0dc76644d650a399bd877b3ee7f7 (diff) |
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.
Diffstat (limited to 'sys/src/cmd/vc')
-rw-r--r-- | sys/src/cmd/vc/swt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |