[svn:parrot] r45481 - trunk/src/io

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri Apr 9 05:47:18 UTC 2010


Author: chromatic
Date: Fri Apr  9 05:47:18 2010
New Revision: 45481
URL: https://trac.parrot.org/parrot/changeset/45481

Log:
[IO] Removed unnecessary code from Parrot_io_read_buffer(), in the hope that C
compilers now recognize that size_t can never be negative.

Modified:
   trunk/src/io/buffer.c

Modified: trunk/src/io/buffer.c
==============================================================================
--- trunk/src/io/buffer.c	Fri Apr  9 05:47:15 2010	(r45480)
+++ trunk/src/io/buffer.c	Fri Apr  9 05:47:18 2010	(r45481)
@@ -357,11 +357,6 @@
         }
 
         got = Parrot_io_fill_readbuf(interp, filehandle);
-
-        /* got is never < 0, but C's type system can't tell */
-        if (got < 0)
-            got = 0;
-
         len = (len < got) ? len : got;
     }
 


More information about the parrot-commits mailing list