re PR fortran/40576 (Endless loop in internal write)
2009-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/40576 * io/transfer.c (sset): Adjust exit condition for loop. From-SVN: r149075
This commit is contained in:
parent
b94f4bef8b
commit
93ab3a3d79
@ -1,3 +1,8 @@
|
||||
2009-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libfortran/40576
|
||||
* io/transfer.c (sset): Adjust exit condition for loop.
|
||||
|
||||
2009-06-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libfortran/40508
|
||||
|
@ -2867,7 +2867,7 @@ sset (stream * s, int c, ssize_t nbyte)
|
||||
{
|
||||
trans = (bytes_left < WRITE_CHUNK) ? bytes_left : WRITE_CHUNK;
|
||||
trans = swrite (s, p, trans);
|
||||
if (trans < 0)
|
||||
if (trans <= 0)
|
||||
return trans;
|
||||
bytes_left -= trans;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user