Skip to content

Commit

Permalink
Merge branch 'master' into v2.1
Browse files Browse the repository at this point in the history
(cherry picked from commit 6a2d8b0)
  • Loading branch information
Mike Pall authored and lukego committed Jan 17, 2018
1 parent 97356f9 commit f6c52a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynasm/dasm_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ int dasm_encode(Dst_DECL, void *buffer)
}
case DASM_REL_LG: p++; if (n >= 0) goto rel_pc;
b++; n = (int)(ptrdiff_t)D->globals[-n];
case DASM_REL_A: rel_a: n -= (int)(ptrdiff_t)(cp+4); goto wd; /* !x64 */
case DASM_REL_A: rel_a:
n -= (unsigned int)(ptrdiff_t)(cp+4); goto wd; /* !x64 */
case DASM_REL_PC: rel_pc: {
int shrink = *b++;
int *pb = DASM_POS2PTR(D, n); if (*pb < 0) { n = pb[1]; goto rel_a; }
Expand Down

0 comments on commit f6c52a3

Please sign in to comment.