summaryrefslogtreecommitdiff
path: root/bcc/declare.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcc/declare.c')
-rw-r--r--bcc/declare.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bcc/declare.c b/bcc/declare.c
index f61887f..3dfb26b 100644
--- a/bcc/declare.c
+++ b/bcc/declare.c
@@ -461,6 +461,15 @@ PRIVATE bool_pt declspec()
&& (gsymptr->type == stype || gsymptr->type == ltype))
ntype = 0;
+ /* Allow long double and long float */
+ if (gvartype == ltype
+ && (gsymptr->type == fltype || gsymptr->type == dtype))
+ {
+ gvartype = dtype;
+ nextsym();
+ break;
+ }
+
/* allow int short and int long, blech */
if (gsymptr->type == itype
&& (gvartype == stype || gvartype == ltype))