[comp.sys.amiga] bug in Aztec 3.4

bph@ut-emx.UUCP (Butler Hine) (02/26/88)

I don't know if this is still relevant, since everybody will be
upgrading to version 3.6, but I found a printf formatting bug
in the v3.4 libraries.  If you:

	printf("%lg\n",1000000.0);

you get:	100000

The implicit %.6lg truncates the last zero!  This bit me BIG the other
night.  Can anyone confirm if this is still present in v3.6?
Note:  I found it in m.lib and mx.lib.  I haven't yet checked the others.


                           Butler Hine
   Gabba,                  Dept. of Astronomy, University of Texas at Austin
     Gabba,                Austin, Tx  78712    (512) 471-4419
         Hey!              {allegra,ihnp4}!{ut-sally,noao}!utastro!bph
                           (arpanet) bph@astro.AS.UTEXAS.EDU
                           (bitnet) bph%astro.as.utexas.edu@CUNYVM.CUNY.EDU

rmariani@watmum.waterloo.edu (Rico Mariani) (04/27/88)

normal ()
{
	register  int  cy;
	register  int  i;
	register  int  *a;

	cy = (a[i] += cy) / 10000;
}

------

Produces:

Aztec C68K 3.4a  2-3-87  (C) 1982-1987 by Manx Software Systems, Inc.
	cy = (a[i] += cy) / 10000;
	                          ^
foo.c:7: ERROR 202: : 
Attempted to free reg not allocated.
1 errors

----

Somebody check this on v3.6 please...

	-Rico