as expected > --- gcl/o/main.c > +++ gcl/o/main.c > @@ -266,8 +266,8 @@ get_gc_environ(void) { > > mem_multiple=1.0; > if ((e=getenv("GCL_MEM_MULTIPLE"))) { > - massert(sscanf(e,"%lf",&mem_multiple)==1); > - massert(mem_multiple>=0.0); > + mem_multiple=atof(e); > + massert(mem_multiple>0.0); > } > > gc_alloc_min=0.05; >
works with GCL_MEM_MULTIPLE=0.1 atof retuns 0 in the case of error and zero value at mem_multiple useless because it is multiplicator :) but I not sure about another variables where zero might be legetim value. -- wbr, Kirill
signature.asc
Description: Message signed with OpenPGP