X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fprotoparse.h;h=ab16632ab57896d684484c2b86696d4a499ca184;hb=7e50b291d8680ae4dc5c442e45276bf98517e9a4;hp=6e1f3abdac7e5489b44f0260ed4e9c18bb371166;hpb=cb090db01ec40b0755fc974dfae3b4c09a4d52bc;p=ia32rtools.git 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;