Explorar o código

Merge branch 'master' into v2.1

Mike Pall %!s(int64=8) %!d(string=hai) anos
pai
achega
6a2d8b0b4d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dynasm/dasm_x86.h

+ 2 - 1
dynasm/dasm_x86.h

@@ -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; }