Fix some rejections of valid floating-point literals
Some valid floating-point literals were giving "Error: Syntax error in input(1)".
This commit is contained in:
parent
32b963ef1c
commit
1c03af9b96
3 changed files with 13 additions and 0 deletions
|
|
@ -630,6 +630,10 @@ macro(size_t, pfx, sizet)
|
|||
float val_float(float x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
float val_float_3(float f = 0e1f, float f2 = 020e0f, float f3 = 0.3e4f) {
|
||||
return f + f2 + f3;
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue