[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs,1.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs,1.11,1.12 |
Date: |
Wed, 28 May 2003 00:53:39 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv730/runtime/System/IO
Modified Files:
MemoryStream.cs
Log Message:
Minor fixes to build in non-full profiles.
Index: MemoryStream.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/MemoryStream.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** MemoryStream.cs 12 May 2003 08:55:53 -0000 1.11
--- MemoryStream.cs 28 May 2003 04:53:36 -0000 1.12
***************
*** 482,486 ****
if (minNewLength > impl_buffer.Length)
{
! int realNewLength = Math.Max(impl_buffer.Length, 1024);
while (minNewLength > realNewLength)
realNewLength = realNewLength * 2; // double
the buffer size.
--- 482,488 ----
if (minNewLength > impl_buffer.Length)
{
! int realNewLength = impl_buffer.Length;
! if (realNewLength < 1024)
! realNewLength = 1024;
while (minNewLength > realNewLength)
realNewLength = realNewLength * 2; // double
the buffer size.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO MemoryStream.cs,1.11,1.12,
Rhys Weatherley <address@hidden> <=