Use bit32 for Lua 5.2 compatibility
Signed-off-by: Rahix <rahix@rahix.de>
This commit is contained in:
parent
b44f63a1bb
commit
13b8fe9cea
1 changed files with 1 additions and 1 deletions
2
bc.lua
2
bc.lua
|
|
@ -33,7 +33,7 @@ local Query = {
|
||||||
|
|
||||||
-- Network ---------------------------------------------------------------- {{{
|
-- Network ---------------------------------------------------------------- {{{
|
||||||
local Network = {
|
local Network = {
|
||||||
default_port = bit32.bor(0xBC00, (Version[1] << 4), Version[2]),
|
default_port = bit32.bor(0xBC00, bit32.lshift(Version[1], 4), Version[2]),
|
||||||
}
|
}
|
||||||
|
|
||||||
function Network:new(modem, port)
|
function Network:new(modem, port)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue