simplified compile time floating point somewhat

This commit is contained in:
ceriel
1991-01-15 18:21:16 +00:00
parent 6ef7433396
commit e2a1aa81f9
7 changed files with 17 additions and 39 deletions

View File

@@ -480,12 +480,13 @@ p1_expr(lvl, expr)
break;
}
case Float:
if (!expr->FL_VALUE) {
expr->FL_VALUE = Malloc(FLT_STRLEN);
flt_flt2str(&(expr->FL_ARITH), expr->FL_VALUE, FLT_STRLEN);
}
print("%s\n", expr->FL_VALUE);
{
char buf[FLT_STRLEN];
flt_flt2str(&(expr->FL_ARITH), buf, FLT_STRLEN);
print("%s\n", buf);
break;
}
case Oper:
o = &expr->ex_object.ex_oper;
print("\n");