summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2007-11-07 19:03:46 -0800
committerCharles Crayne <chuck@thor.crayne.org>2007-11-07 19:03:46 -0800
commit5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897 (patch)
tree09ca73dd80523d4ab459961b01a1263ae657c5f7 /assemble.c
parent8c7eca493600aa2ee39554dfe8712fb30a8cec3f (diff)
downloadnasm-5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897.tar.gz
nasm-5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897.tar.bz2
nasm-5fbbc8c2e7fbf6756fd1e8a400c6295c2428b897.zip
Upgrade RAA functions to hold 64-bit data.
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/assemble.c b/assemble.c
index 80c95f1..9f3b947 100644
--- a/assemble.c
+++ b/assemble.c
@@ -218,10 +218,10 @@ static void out(int64_t offset, int32_t segto, const void *data,
outfmt->output(segto, data, type, segment, wrt);
}
-static int jmp_match(int32_t segment, int32_t offset, int bits,
+static int jmp_match(int32_t segment, int64_t offset, int bits,
insn * ins, const char *code)
{
- int32_t isize;
+ int64_t isize;
uint8_t c = code[0];
if (c != 0370 && c != 0371)
@@ -723,7 +723,7 @@ int64_t insn_size(int32_t segment, int64_t offset, int bits, uint32_t cp,
if (m == 100) {
/* we've matched an instruction. */
- int32_t isize;
+ int64_t isize;
const char *codes = temp->code;
int j;