Skip to content

Commit

Permalink
ws: Fixed support for aligned integers larger than 32 bits
Browse files Browse the repository at this point in the history
Fixes #8.
  • Loading branch information
Snaipe committed Oct 31, 2016
1 parent dfb6381 commit 9e55b00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wssdl/wireshark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ ws.dissector = function (pkt, proto)
if field._le then
mname = 'le_' .. mname
end
if sz > 32 and (field._type == 'signed' or field._type == 'unsigned') then
mname = mname .. '64'
end
val = raw[mname](raw)
end
end
Expand Down

0 comments on commit 9e55b00

Please sign in to comment.