1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Remove bit library from a few more libs

This commit is contained in:
dmiller
2018-08-28 03:52:55 +00:00
parent 7c3b9b40d2
commit d84ddbe3fd
16 changed files with 51 additions and 67 deletions

View File

@@ -5,7 +5,6 @@
--
local bin = require "bin"
local bit = require "bit"
local match = require "match"
local nmap = require "nmap"
local os = require "os"
@@ -52,8 +51,8 @@ NDMP = {
parse = function(data)
local fh = NDMP.FragmentHeader:new()
local _, tmp = bin.unpack(">I", data)
fh.length = bit.band(tmp, 0x7fffffff)
fh.last= bit.rshift(tmp, 31)
fh.length = (tmp & 0x7fffffff)
fh.last= (tmp >> 31)
return fh
end,