Explorar o código

dodge lua problem with charCodeAt being inlined

Simon Krajewski hai 10 meses
pai
achega
e5d26f38d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {