Explorar el Código

minor haxe.io.Path optimization - use StringTools.fastCodeAt where index is guaranteed to be valid

Dan Korostelev hace 8 años
padre
commit
490c0052ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      std/haxe/io/Path.hx

+ 1 - 1
std/haxe/io/Path.hx

@@ -229,7 +229,7 @@ class Path {
 		var colon = false;
 		var slashes = false;
 		for (i in 0...tmp.length) {
-			switch (tmp.charCodeAt(i)) {
+			switch (StringTools.fastCodeAt(tmp, i)) {
 				case ":".code:
 					acc.add(":");
 					colon = true;