# HG changeset patch # User Mike Pavone # Date 1356758700 28800 # Node ID fb7944d3ed5c19e64c9e3315cf81ae72fff9957b # Parent 9eaba47c429d8eb20c2a5d0532a062558a06706b Fix call_r in gen_x86 so that it properly returns a pointer to the location after the generated instruction diff -r 9eaba47c429d -r fb7944d3ed5c gen_x86.c --- a/gen_x86.c Fri Dec 28 21:20:14 2012 -0800 +++ b/gen_x86.c Fri Dec 28 21:25:00 2012 -0800 @@ -1264,6 +1264,7 @@ { *(out++) = OP_SINGLE_EA; *(out++) = MODE_REG_DIRECT | dst | (OP_EX_CALL_EA << 3); + return out; } uint8_t * retn(uint8_t * out)