Skip to content

Commit

Permalink
ws: Fixed field type not being resolved for int/uint sizes not divisi…
Browse files Browse the repository at this point in the history
…ble by 8
  • Loading branch information
Snaipe committed Nov 4, 2016
1 parent 08d4c1c commit ecc3d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wssdl/wireshark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ws.make_fields = function (fields, pkt, prefix)
if type(len) ~= 'number' then
error('wssdl: Cannot compute size of primitive ' .. utils.quote(field._name) .. ' field.')
end
tname = tname .. tostring(len)
tname = tname .. tostring(len > 32 and 64 or math.ceil(len / 8) * 8)
end

ftype = ftypes[tname]
Expand Down

0 comments on commit ecc3d0c

Please sign in to comment.