-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: locale parsing related crash on some mpv builds (#794)
The # operator produces different results on luajit to the interpreter for lists like `{1, nil, 3}`. The interpreter gives a size of 3, while luajit says it's 1. That caused `table_assign` and `itable_join` to behave differently depending on the lua environment they're running in. To get the total number of vararg arguments, `select('#', ...)`` can be used, which doesn't stop counting when it encounters `nil`. Any error return nil.
- Loading branch information
1 parent
28e9684
commit 210a121
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters