VAX (VMS) C / strangeness (serious bug?) w/ prototypes and floats
Joseph Nathan Hall
jnh at ece-csc.UUCP
Fri May 27 10:00:15 AEST 1988
Pardon me for a couple of typos: the second 'y =' should be
z = 3.0 (obviously)
and the actual output is
1.000000 2.000000 1.000000
1.000000 2.000000 1.000000
More notes: the results are the same if you cc/prec=sing and/or /noopt
and/or if you cast the arguments float:
test((float) 1.0, (float) 2.0, (float) 3.0) ...
--
v v sssss|| joseph hall || 201-1D Hampton Lee Court
v v s s || jnh at ece-csc.ncsu.edu (Internet) || Cary, NC 27511
v sss || the opinions expressed herein are not necessarily those of my
-----------|| employer, north carolina state university . . . . . . . . . . .
More information about the Comp.lang.c
mailing list