From 35f8e2b1fcdd566bf15ac19893ab750e84b6ba09 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 20 Aug 2007 05:11:11 +0000 Subject: [PATCH] Set value->sign appropriately instead of ineffective passing of -1 to output_value(). svn path=/trunk/yasm/; revision=1913 --- modules/arch/x86/x86bc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/arch/x86/x86bc.c b/modules/arch/x86/x86bc.c index e574f935..a01031d9 100644 --- a/modules/arch/x86/x86bc.c +++ b/modules/arch/x86/x86bc.c @@ -892,8 +892,9 @@ x86_bc_jmp_tobytes(yasm_bytecode *bc, unsigned char **bufp, void *d, yasm_expr_int(delta), bc->line); jmp->target.size = 8; + jmp->target.sign = 1; if (output_value(&jmp->target, *bufp, 1, - (unsigned long)(*bufp-bufp_orig), bc, -1, d)) + (unsigned long)(*bufp-bufp_orig), bc, 1, d)) return 1; *bufp += 1; break; @@ -923,8 +924,9 @@ x86_bc_jmp_tobytes(yasm_bytecode *bc, unsigned char **bufp, void *d, yasm_expr_int(delta), bc->line); jmp->target.size = i*8; + jmp->target.sign = 1; if (output_value(&jmp->target, *bufp, i, - (unsigned long)(*bufp-bufp_orig), bc, -1, d)) + (unsigned long)(*bufp-bufp_orig), bc, 1, d)) return 1; *bufp += i; break; -- 2.40.0