diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-08-16 13:26:16 -0700 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-08-16 13:28:55 -0700 |
commit | cad13d0dce46dbbb42140a40f32245f73672dc39 (patch) | |
tree | 6fe5be74e6e00951eb6ff1cd4c6dcc5762dc099c /parse.c | |
parent | fbbb8e4d78e8b2e9410699fd27af282cc6ddfc4b (diff) | |
download | roux-cad13d0dce46dbbb42140a40f32245f73672dc39.tar.gz |
add support for unions in sysv abi
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.c b/parse.c index 7afa977..31a6d09 100644 --- a/parse.c +++ b/parse.c @@ -847,8 +847,7 @@ parseseg(Seg *seg, Typ *ty, int t) } if (t != Trbrace) err(", or } expected"); - seg[n].type = Sint; - seg[n].len = 0; + seg[n].type = Send; a = 1 << al; sz = (sz + a - 1) & -a; if (sz >= ty->size) |