diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-01-24 02:42:01 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-01-24 02:42:01 +0000 |
commit | e36b1c6dafa542ed854a626bee717736d5d9eda7 (patch) | |
tree | ac73c949bd90e2aaa4b2178df5111d0cbb77d450 /epan/wslua/wslua_pinfo.c | |
parent | b415128e481fce0ff4ac3ced81fb5ab09824fa47 (diff) |
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6738 :
size_t is sometimes an integer and sometimes a long. To avoid compiler
warnings when formatting it, cast it to a long.
svn path=/trunk/; revision=40682
Diffstat (limited to 'epan/wslua/wslua_pinfo.c')
-rw-r--r-- | epan/wslua/wslua_pinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_pinfo.c b/epan/wslua/wslua_pinfo.c index d5fd5750aa..2df8bc65fc 100644 --- a/epan/wslua/wslua_pinfo.c +++ b/epan/wslua/wslua_pinfo.c @@ -95,7 +95,7 @@ WSLUA_METAMETHOD NSTime__tostring(lua_State* L) { if (!nstime) return 0; - lua_pushstring(L,ep_strdup_printf("%ld.%09d", nstime->secs, nstime->nsecs)); + lua_pushstring(L,ep_strdup_printf("%ld.%09d", (long)nstime->secs, nstime->nsecs)); WSLUA_RETURN(1); /* The string representing the nstime. */ } |