diff options
| author | ruki <[email protected]> | 2026-03-29 22:49:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-29 22:49:41 +0800 |
| commit | 1bccfc273af2b1d579d033324bca481e15c58653 (patch) | |
| tree | 192697793bd61d48b4423da0ac4a1eab804d80dc /xmake/core/base/thread.lua | |
| parent | f4513cc28aa778e1ad0d050511cc7e295fe81e32 (diff) | |
fix const limit on lua5.5
Diffstat (limited to 'xmake/core/base/thread.lua')
| -rw-r--r-- | xmake/core/base/thread.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/base/thread.lua b/xmake/core/base/thread.lua index 067b92f3f..187f98d53 100644 --- a/xmake/core/base/thread.lua +++ b/xmake/core/base/thread.lua @@ -103,6 +103,7 @@ function _thread:start() -- translate arguments (mutex, ...) local argv = {} for _, arg in ipairs(self._ARGV) do + local arg = arg if type(arg) == "table" then -- try to serialize thread object (mutex, event, semaphore, queue, sharedata) local serialized = thread._serialize_object(arg) @@ -927,6 +928,7 @@ function thread._run_thread(callback_str, callinfo_str) if argv then local newargv = {} for _, arg in ipairs(argv) do + local arg = arg if type(arg) == "table" and arg.caddr then -- try to deserialize thread object local obj = thread._deserialize_object(arg) |
