mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
Fixing bug in sexp_read_float_tail when compiled with Boehm GC,
where an uninitialized value could be read. Fixes issue #184.
This commit is contained in:
parent
b8864f61af
commit
f5d60050a5
1 changed files with 1 additions and 0 deletions
1
sexp.c
1
sexp.c
|
@ -2340,6 +2340,7 @@ sexp sexp_read_float_tail (sexp ctx, sexp in, double whole, int negp) {
|
|||
sexp exponent=SEXP_VOID;
|
||||
double val=0.0, scale=0.1, e=0.0;
|
||||
sexp_gc_var1(res);
|
||||
res = SEXP_VOID; /* for Boehm */
|
||||
sexp_gc_preserve1(ctx, res);
|
||||
for (c=sexp_read_char(ctx, in); sexp_isdigit(c);
|
||||
c=sexp_read_char(ctx, in), scale*=0.1)
|
||||
|
|
Loading…
Add table
Reference in a new issue