Skip to content

Commit

Permalink
dodge lua problem with charCodeAt being inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Oct 22, 2024
1 parent 1dffb2e commit e5d26f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/lua/_std/String.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5d26f3

Please sign in to comment.