Browse Source

fixed substr

Nicolas Cannasse 8 năm trước cách đây
mục cha
commit
e178dc5b17
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hxd/UString.hx

+ 1 - 1
hxd/UString.hx

@@ -24,7 +24,7 @@ abstract UString(String) from String to String {
 		#end
 		#end
 	}
 	}
 
 
-	public inline function substr( pos : Int, ?len : Int ) : UString {
+	public inline function substr( pos : Int, #if flash len = 0x7fffffff #else ?len : Int #end ) : UString {
 		#if (flash  || js)
 		#if (flash  || js)
 		return this.substr( pos, len );
 		return this.substr( pos, len );
 		#else
 		#else