public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc55ab9
)
fix in compile time int2float conversion
author
ceriel
<none@none>
Mon, 23 Jan 1989 16:52:22 +0000
(16:52 +0000)
committer
ceriel
<none@none>
Mon, 23 Jan 1989 16:52:22 +0000
(16:52 +0000)
lang/cem/cemcom/arith.c
patch
|
blob
|
history
diff --git
a/lang/cem/cemcom/arith.c
b/lang/cem/cemcom/arith.c
index
5632e84
..
234cc5d
100644
(file)
--- a/
lang/cem/cemcom/arith.c
+++ b/
lang/cem/cemcom/arith.c
@@
-282,7
+282,7
@@
int2float(expp, tp)
exp = *expp;
exp->ex_type = tp;
exp->ex_class = Float;
- exp->FL_VALUE = Salloc(buf, (unsigned)strlen(buf)+
1
) + 1;
+ exp->FL_VALUE = Salloc(buf, (unsigned)strlen(buf)+
2
) + 1;
exp->FL_DATLAB = 0;
}
else *expp = arith2arith(tp, INT2FLOAT, *expp);