Răsfoiți Sursa

Fixed DataBuffer.Resize() bug.

Mark Sibly 8 ani în urmă
părinte
comite
ed696547c8
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      modules/std/memory/databuffer.monkey2

+ 1 - 0
modules/std/memory/databuffer.monkey2

@@ -85,6 +85,7 @@ Class DataBuffer Extends std.resource.Resource
 		Local data:=Cast<UByte Ptr>( GCMalloc( length ) )
 		libc.memcpy( data,_data,Min( length,_length ) )
 		GCFree( _data )
+		_length=length
 		_data=data
 	End