Use bit32 for lua 5.2 compat
Signed-off-by: Rahix <rahix@rahix.de>
This commit is contained in:
parent
c27e889d45
commit
b44f63a1bb
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 = 0xBC00 | (Version[1] << 4) | Version[2],
|
default_port = bit32.bor(0xBC00, (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