[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL...
[mono.git] / mcs / class / corlib / System.IO / Stream.cs
index d718e1fb05b2d9c634958aba436b9102271b7729..17119e612bea968cb5881223f93d3386f3bd22f2 100644 (file)
@@ -153,7 +153,7 @@ namespace System.IO
                {
                        byte[] buffer = new byte [1];
 
-                       if (Read (buffer, 0, 1) == 1)
+                       if (Read (buffer, 0, 1) > 0)
                                return buffer [0];
                        
                        return -1;