use an enum for aggregate segments

This commit is contained in:
Quentin Carbonneaux 2016-08-14 18:11:49 -07:00
parent faa084cca9
commit 8ca73af85a
3 changed files with 22 additions and 15 deletions

11
all.h
View file

@ -425,9 +425,14 @@ struct Typ {
ulong size;
int align;
struct {
uint isflt:1;
uint ispad:1;
struct Seg {
enum {
Spad,
Sint,
Sflt,
Styp,
};
uint type:2;
uint len:30;
} seg[NSeg+1];
};