Skip to content

Commit

Permalink
improve fastCodeAt for python
Browse files Browse the repository at this point in the history
  • Loading branch information
frabbit committed May 1, 2014
1 parent 388f94a commit 176ee60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/StringTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class StringTools {
return (untyped s).charCodeAt(index);
#end
#elseif python
return if (index >= s.length) -1 else untyped(ord(untyped s[index]));
return if (index >= s.length) -1 else python.lib.Builtin.ord(python.Syntax.arrayAccess(s, index));
#else
return s.cca(index);
#end
Expand Down

0 comments on commit 176ee60

Please sign in to comment.