projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL...
[mono.git]
/
mcs
/
class
/
corlib
/
System.IO
/
Stream.cs
diff --git
a/mcs/class/corlib/System.IO/Stream.cs
b/mcs/class/corlib/System.IO/Stream.cs
index d718e1fb05b2d9c634958aba436b9102271b7729..17119e612bea968cb5881223f93d3386f3bd22f2 100644
(file)
--- a/
mcs/class/corlib/System.IO/Stream.cs
+++ b/
mcs/class/corlib/System.IO/Stream.cs
@@
-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;