Support `FT_CHAR` in Lua `TreeItem_add_item_any()`

Treat a `FT_CHAR` field like a `FT_UINT*` field, the same as Wireshark's
`proto_tree_add_item()` does.

Closes #18353
This commit is contained in:
David Perry 2022-09-20 07:32:41 -04:00 committed by AndersBroman
parent 8043acd767
commit c96a629c24
1 changed files with 1 additions and 0 deletions

View File

@ -359,6 +359,7 @@ static int TreeItem_add_item_any(lua_State *L, gboolean little_endian) {
item = proto_tree_add_boolean(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,val);
}
break;
case FT_CHAR:
case FT_UINT8:
case FT_UINT16:
case FT_UINT24: