[svn:parrot] r39758 - branches/io_cleanups/src/io

Infinoid at svn.parrot.org Infinoid at svn.parrot.org
Wed Jun 24 10:52:28 UTC 2009


Author: Infinoid
Date: Wed Jun 24 10:52:28 2009
New Revision: 39758
URL: https://trac.parrot.org/parrot/changeset/39758

Log:
[io] When done flushing the buffer, mark it as empty.  (I think this was a typo.)

Modified:
   branches/io_cleanups/src/io/buffer.c

Modified: branches/io_cleanups/src/io/buffer.c
==============================================================================
--- branches/io_cleanups/src/io/buffer.c	Wed Jun 24 10:25:27 2009	(r39757)
+++ branches/io_cleanups/src/io/buffer.c	Wed Jun 24 10:52:28 2009	(r39758)
@@ -203,7 +203,7 @@
         fake.bufused = to_write;
         wrote = PIO_WRITE(interp, handle, &fake);
         if (wrote == (long)to_write) {
-            data_struct->buffer_start = buffer_start;
+            data_struct->buffer_next = buffer_start;
             /* Release buffer */
             data_struct->buffer_flags = (buffer_flags & ~PIO_BF_WRITEBUF);
             return 0;


More information about the parrot-commits mailing list