new syntax for float literals

This commit is contained in:
Quentin Carbonneaux 2016-02-12 14:20:12 -05:00
parent 8b81a5acc6
commit 8e88861807
3 changed files with 52 additions and 31 deletions

View file

@ -383,9 +383,10 @@ struct Con {
char label[NString];
union {
int64_t i;
double f;
double d;
float s;
} bits;
char flt;
char flt; /* 1 for single precision, 2 for double */
char emit;
};
@ -440,6 +441,8 @@ struct Dat {
} type;
union {
int64_t num;
double fltd;
float flts;
char *str;
} u;
};