Ver código fonte

dodge lua problem with charCodeAt being inlined

Simon Krajewski 9 meses atrás
pai
commit
e5d26f38d0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      std/lua/_std/String.hx

+ 1 - 1
std/lua/_std/String.hx

@@ -155,7 +155,7 @@ class String {
 	}
 
 	public inline function charCodeAt(index:Int):Null<Int> {
-		return BaseString.byte(this, index + 1);
+		return (BaseString.byte(this, index + 1) : Null<Int>);
 	}
 
 	public function substr(pos:Int, ?len:Int):String {