summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-08-16 13:26:16 -0700
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-08-16 13:28:55 -0700
commitcad13d0dce46dbbb42140a40f32245f73672dc39 (patch)
tree6fe5be74e6e00951eb6ff1cd4c6dcc5762dc099c /parse.c
parentfbbb8e4d78e8b2e9410699fd27af282cc6ddfc4b (diff)
downloadroux-cad13d0dce46dbbb42140a40f32245f73672dc39.tar.gz
add support for unions in sysv abi
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c3
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)