Re: macOS status

"Kirill A. Korinsky" <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Message-ID <[email protected]>
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 (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3/KLNtcfWfLw7JxqmNjZhndZIm4FAmWImzIACgkQmNjZhndZ
Im52iw//TH0FOmyFAiaoBLS7aE3m3oBXkyoyDAMx1DoQgt579+DiPJYo5JLR5Dfa
IBIK44/QnO6TkrqjqWjsqFfvPcDe+zZXoHsIqC+lerVF4/EhEawOy2m2VhObfLVj
+mGrvEr46e6CimEc1/fBy3TQYpgv0+T9GWYUpm5qfilyIuL65YNHOfGmsQy+NPPZ
8cigBNZ7ogfAhZBf6tK12Ajkay0OGGuFZrXirkTy4wKd3zCHxgvSSQdjLZAHjg+R
Wy83nCFxxvNBbMrQbmf926f2V/mOFlA2sO+p7x2FcGZzPPgJQYfD1cpDYLCJouxr
CJZTf5p4ycRlsW6uHSRkOXrG3ez0MiiAHi/RMxin/mzruMyiHGNz0Kg/3BGfQrYP
c1Svn5o2QoPBgbzKop5+EDtVVTGo8xN2eSgQwJ8l0rqaMsKYCaVoSmRZ8eqqR8nS
spwpinfIR8A8Ptlgccq8M0bbRgKlY5lD3MgsItPKGiEXggSp1/3id2LBsVwWT/qC
EGFJAPpk3pjmYNtthr4l8JsbMyaDHZMqzty5c7Ub65dr/VbsVyFaU71lxEI6y7f1
UL1Ys41bZeY0kipu6j/vqZAWv6mshkA1QAGf7RrfAp0jAWq7UzsCXqbXROQBlozm
J5JMx/uKtNi+ZQYlPI3GdrmCFp98MGwuBa902G53zGb2fMGfRX4=
=vGBa
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.