diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-25 19:04:10 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-25 19:04:10 +0000 |
commit | 447de1178dd5b7ee53f1f96dd343121c47c363ea (patch) | |
tree | 457e8bcaad69e2b93e0daaea1dd937e6b6ecd00b /epan/wslua | |
parent | 0b9a4b16efa75601f09412101a4823a61223c1a1 (diff) |
Allow signed integers displayed as BASE_HEX_DEC.
svn path=/trunk/; revision=39571
Diffstat (limited to 'epan/wslua')
-rw-r--r-- | epan/wslua/wslua_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index 81f3f9a8a3..6073b4d914 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -678,7 +678,7 @@ static int ProtoField_integer(lua_State* L, enum ftenum type) { } else if (vs && (type == FT_INT64 || type == FT_UINT64)) { luaL_argerror(L, 4, "This type does not support value string"); return 0; - } else if ((base == BASE_HEX || base == BASE_HEX_DEC || base == BASE_OCT) && + } else if ((base == BASE_HEX || base == BASE_OCT) && (type == FT_INT8 || type == FT_INT16 || type == FT_INT24 || type == FT_INT32 || type == FT_INT64)) { luaL_argerror(L, 3, "This type does not display as hexadecimal"); return 0; |