This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

I/O library and testing


Hi all,

I can read the following in libgfortran/io/write.c (around line 405):

  switch (ft)
    {
[...]
    case FMT_E:
    case FMT_D:
[...]
      if (ft = FMT_E)
        expchar = 'E';
      else
        expchar = 'D';
      break;

I can only assume that "if (ft = FMT_E)" should really be "if (ft == FMT_E)", but that raises two questions: why doesn't it issue a warning when building the libgfortran, and what is the extent of the testing for the I/O library (I'm having a close look at it these latter days, to fix a few PR).

While the first question is somewhat anecdotical, the answer to the second I'd r

Thanks,
FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]