aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-10-25 11:20:54 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-10-25 11:20:54 +0000
commit2d62e550b7f45ce51adae4a1c1ef4b7714ae7d8e (patch)
treec562628b59fa0a3f6948e1d5b629029ebc99c6e1 /epan/wslua
parent943c8b97edb380bc1e6f803bc7a7a9ae4fed4b1b (diff)
Added another Lua warning:
- FT_FRAMENUM can not have a bitmask. svn path=/trunk/; revision=39563
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c
index eeb5be0fc6..81f3f9a8a3 100644
--- a/epan/wslua/wslua_proto.c
+++ b/epan/wslua/wslua_proto.c
@@ -669,6 +669,8 @@ static int ProtoField_integer(lua_State* L, enum ftenum type) {
if (type == FT_FRAMENUM) {
if (base != BASE_NONE)
luaL_argerror(L, 3, "FT_FRAMENUMs must use BASE_NONE");
+ else if (mask)
+ luaL_argerror(L, 3, "FT_FRAMENUMs can not have a bitmask");
} else if (base < BASE_DEC || base > BASE_HEX_DEC) {
luaL_argerror(L, 3, "Base must be either BASE_DEC, BASE_HEX, BASE_OCT,"
" BASE_DEC_HEX, BASE_DEC_HEX or BASE_HEX_DEC");