diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-08 08:15:29 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-08 08:15:29 +0000 |
commit | 72d53268ba73d3c05ba2a11d96d924b001f24226 (patch) | |
tree | 188aacd7e6853c05935fe78e51156dfd55f92f0b /epan/wslua/wslua_field.c | |
parent | 08797664b3b06e6b2025755b0daf0444aa2f3bb3 (diff) |
Allocate correct lengths for int64 and uint64.
svn path=/trunk/; revision=28657
Diffstat (limited to 'epan/wslua/wslua_field.c')
-rw-r--r-- | epan/wslua/wslua_field.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_field.c b/epan/wslua/wslua_field.c index 84ba0a01a1..870b487817 100644 --- a/epan/wslua/wslua_field.c +++ b/epan/wslua/wslua_field.c @@ -81,13 +81,13 @@ WSLUA_METAMETHOD FieldInfo__call(lua_State* L) { lua_pushnumber(L,(lua_Number)fvalue_get_floating(&(fi->value))); return 1; case FT_INT64: { - Int64 num = g_malloc(sizeof(Int64)); + Int64 num = g_malloc(sizeof(gint64)); *num = fvalue_get_integer64(&(fi->value)); pushInt64(L,num); return 1; } case FT_UINT64: { - UInt64 num = g_malloc(sizeof(UInt64)); + UInt64 num = g_malloc(sizeof(guint64)); *num = fvalue_get_integer64(&(fi->value)); pushUInt64(L,num); return 1; |