diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-09-29 13:28:03 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-09-29 13:30:08 +0200 |
| commit | 3ca39dfc4dd8a2dda5b3a9b8c29e295839490af3 (patch) | |
| tree | d3f4161d07c22e4a08eb0d3edfd61b485ef10579 /sysgen | |
| parent | bf21057e7c36c72c1b46aa71bea8dc48509d4c40 (diff) | |
sys: add padding to structs again
Struct padding was accidentially lost after:
852e3d2eae98a913b7ec91822ba4dc61059a6955
Restore it. Now with tests.
Fixes #78
Diffstat (limited to 'sysgen')
| -rw-r--r-- | sysgen/sysgen.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysgen/sysgen.go b/sysgen/sysgen.go index e7a0fae00..c27e413c3 100644 --- a/sysgen/sysgen.go +++ b/sysgen/sysgen.go @@ -283,7 +283,7 @@ func generateStructs(desc *Description, consts map[string]uint64, out io.Writer) } fmt.Fprintf(out, "}\n") - fmt.Fprintf(out, "func init() {\n") + fmt.Fprintf(out, "func initStructFields() {\n") for _, str := range structArray { typ := "StructType" fields := "Fields" |
