[PATCH] libgfortran format conversion bug (PR libgfortran/22412)
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Mon Jul 11 22:32:00 GMT 2005
David Edelsohn wrote:
> The libgfortran I/O functions otoa() and btoa() use a buffer
> `scratch'. The pointer into the buffer is initialized in those two
> functions as
>
> p = scratch + sizeof (SCRATCH_SIZE) - 1;
D'oh.
> Okay for mainline and 4.0?
Of course.
Thanks,
- Tobi
> * io/write.c (otoa): Bias p by SCRATCH_SIZE, not
> sizeof (SCRATCH_SIZE).
> (btoa): Same.
>
More information about the Fortran
mailing list