Преглед изворни кода

[js] initially grow BytesBuffer

Simon Krajewski пре 8 година
родитељ
комит
ab34ef9b13
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      std/js/_std/haxe/io/BytesBuffer.hx

+ 1 - 0
std/js/_std/haxe/io/BytesBuffer.hx

@@ -34,6 +34,7 @@ class BytesBuffer {
 	public function new() {
 		pos = 0;
 		size = 0;
+		grow(0);
 	}
 
 	inline function get_length() : Int {