Browse Source

fix Js compilation (for whatever reason)

Simon Krajewski 11 years ago
parent
commit
be14c837d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/StringTools.hx

+ 1 - 1
std/StringTools.hx

@@ -371,7 +371,7 @@ class StringTools {
 		#elseif cs
 		return ( cast(index, UInt) < s.length ) ? cast(s[index], Int) : -1;
 		#elseif js
-		return s.charCodeAt(index);
+		return (untyped s).charCodeAt(index);
 		#elseif python
 		return if (index >= s.length) -1 else python.lib.Builtin.ord(python.Syntax.arrayAccess(s, index));
 		#else