DRV-16: Fix math.pow Lua 5.3+ compatibility#11
Conversation
math.pow was removed in Lua 5.3. Use the ^ operator instead, which works across all Lua versions (5.1+, LuaJIT).
|
CI status: I can't approve it via the API (403 — GitHub Apps can't approve their own workflow runs). You'll need to approve it from the Actions tab: |
|
The StyLua formatting issue from the first CI run has been fixed (commit 3d3ff26 adds the required spaces: However, the new CI run (#41) is stuck at Action needed: Approve workflow run #41 to let CI proceed. |
|
The latest commit ( |
|
The Release workflow failed because the v0.5.2 GitHub Release already existed (race condition — likely triggered twice from the merge). The release had no build artifacts attached. I deleted the empty release. Can you re-run the failed "Release" workflow from the Actions tab so it recreates the release with the https://github.com/finitelabs/lua-noiseprotocol/actions/runs/23515510492 |
Replace
math.pow(2, 32) - 1with2^32 - 1insrc/noiseprotocol/init.lua.math.powwas removed in Lua 5.3+. The^operator works across all Lua versions (5.1+, LuaJIT).Fixes DRV-16