Skip to content

DRV-19: Fix math.pow Lua 5.3+ compatibility#2

Merged
svc-finitelabs[bot] merged 2 commits into
mainfrom
agent/DRV-19-fix-math-pow
Mar 24, 2026
Merged

DRV-19: Fix math.pow Lua 5.3+ compatibility#2
svc-finitelabs[bot] merged 2 commits into
mainfrom
agent/DRV-19-fix-math-pow

Conversation

@svc-finitelabs
Copy link
Copy Markdown
Contributor

Replace math.pow(2, ...) with 2^(...) in src/bthome/parser.lua (2 occurrences).

math.pow was removed in Lua 5.3+ (without LUA_COMPAT_MATHLIB). The ^ operator works across all Lua versions.

Part of DRV-15 (Lua 5.3+ compat audit). Fixes DRV-19

math.pow was removed in Lua 5.3. Use the ^ operator instead, which works
across all Lua versions (5.1+, LuaJIT).

Fixes DRV-19
derek-miller
derek-miller previously approved these changes Mar 24, 2026
@svc-finitelabs svc-finitelabs Bot merged commit 13630c6 into main Mar 24, 2026
8 checks passed
@svc-finitelabs svc-finitelabs Bot deleted the agent/DRV-19-fix-math-pow branch March 24, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant