Skip to content

Commit

Permalink
Make it compile with WANT_FLOAT=0
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart-augustsson-epicgames committed Jan 13, 2024
1 parent 46e95ea commit 4c3d3b6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/runtime/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,6 @@ parse(BFILE *f)
NODEPTR *nodep;
heapoffs_t l;
value_t i;
flt_t d;
int c;
char buf[80]; /* store names of primitives. */

Expand All @@ -1224,8 +1223,14 @@ parse(BFILE *f)
ERR("parse: stack");
return x;
case '&':
d = parse_double(f);
r = mkFlt(d);
#if WANT_FLOAT
r = mkFlt(parse_double(f));
#else
while (getNT(f)) /* skip the float constant */
;
r = alloc_node(T_DBL);
SETVALUE(r, 0);
#endif
PUSH(r);
break;
case '#':
Expand Down

0 comments on commit 4c3d3b6

Please sign in to comment.