aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/expr.c b/expr.c
index 30399e5..8e8a7ca 100644
--- a/expr.c
+++ b/expr.c
@@ -481,6 +481,11 @@ postfixexpr(struct scope *s, struct expression *r)
e->builtin.kind = BUILTINALLOCA;
e->builtin.arg = exprconvert(assignexpr(s), &typeulong);
break;
+ case BUILTININFF:
+ e = mkexpr(EXPRCONST, &typefloat, 0);
+ /* TODO: use INFINITY here when we can handle musl's math.h */
+ e->constant.f = strtod("inf", NULL);
+ break;
default:
fatal("internal error; unknown builtin");
}