new syntax for float literals
This commit is contained in:
parent
8b81a5acc6
commit
8e88861807
3 changed files with 52 additions and 31 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue