mirror of
https://github.com/golang/go
synced 2024-11-12 07:00:21 -07:00
5c: make alignment rules match 5g, just like 6c matches 6g
I should have done this a year ago in: changeset: 5137:686b18098944 user: Russ Cox <rsc@golang.org> date: Thu Mar 25 14:05:54 2010 -0700 files: src/cmd/8c/swt.c description: make alignment rules match 8g, just like 6c matches 6g. R=ken2 CC=golang-dev https://golang.org/cl/760042 R=ken2 CC=golang-dev https://golang.org/cl/4437054
This commit is contained in:
parent
857f17d346
commit
b331f3cfd0
@ -665,6 +665,8 @@ align(int32 i, Type *t, int op, int32 *maxalign)
|
||||
|
||||
case Aarg2: /* width of a parameter */
|
||||
o += t->width;
|
||||
w = t->width;
|
||||
if(w > SZ_LONG)
|
||||
w = SZ_LONG;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user