diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-02-14 13:36:11 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-02-14 12:37:25 +0000 |
commit | d12011a5f9dce995b5c2c13c7622e214ed9b21e3 (patch) | |
tree | 8357834d98ed52141f9243b2c49b42601f4a18be /epan/wslua/wslua_struct.c | |
parent | c4f1777a97415b8b7d76eda27dcd6f238501e5f3 (diff) |
Fix build on Windows
wslua_struct.c(431) : error C2220: warning treated as error - no 'object' file generated
wslua_struct.c(431) : warning C4244: '=' : conversion from 'lua_Number' to 'size_t', possible loss of data
Change-Id: Id8b7a77eb123232116223077175d243195c8d4fa
Reviewed-on: https://code.wireshark.org/review/213
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/wslua/wslua_struct.c')
-rw-r--r-- | epan/wslua/wslua_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_struct.c b/epan/wslua/wslua_struct.c index cf27a73cc5..87a7371f7c 100644 --- a/epan/wslua/wslua_struct.c +++ b/epan/wslua/wslua_struct.c @@ -428,7 +428,7 @@ WSLUA_CONSTRUCTOR Struct_unpack (lua_State *L) { if (size == 0) { if (!lua_isnumber(L, -1)) luaL_error(L, "format `c0' needs a previous size"); - size = lua_tonumber(L, -1); + size = (guint32)lua_tonumber(L, -1); lua_pop(L, 1); luaL_argcheck(L, pos+size <= ld, 2, "data string too short"); } |