From 7e50b291d8680ae4dc5c442e45276bf98517e9a4 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 10 Feb 2014 04:33:12 +0200 Subject: [PATCH] int64/double hack at least stackframe should be correct.. --- tools/protoparse.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/protoparse.h b/tools/protoparse.h index 6e1f3ab..ab16632 100644 --- a/tools/protoparse.h +++ b/tools/protoparse.h @@ -536,6 +536,16 @@ static int parse_protostr(char *protostr, struct parsed_proto *pp) arg->reg = strdup(map_reg(regparm)); } + if (strstr(arg->type.name, "int64") + || IS(arg->type.name, "double")) + { + // hack.. + free(arg->type.name); + arg->type.name = strdup("int"); + pp_copy_arg(&pp->arg[xarg], arg); + xarg++; + } + ret = check_struct_arg(arg); if (ret > 0) { pp->has_structarg = 1; -- 2.39.2