From 4fb64f8b2fa996719ae5a343f867aa63db9b0fb1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 25 Apr 2011 03:31:02 +0000 Subject: [PATCH] Get rid of a couple warnings --- src/arch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch.c b/src/arch.c index 8ff838a..eacc784 100644 --- a/src/arch.c +++ b/src/arch.c @@ -443,7 +443,7 @@ int arch_decode(Arch * arch) if(arch->plugin->decode == NULL) return -error_set_code(1, "%s: %s", arch->plugin->name, "Disassembly not supported"); - printf("\n%08lx:\n", arch->buffer_pos + arch->base); + printf("\n%08lx:\n", arch->buffer_pos + (long)arch->base); for(;;) { if((p = realloc(calls, sizeof(*calls) * (calls_cnt + 1))) @@ -479,7 +479,7 @@ static int _decode_print(Arch * arch, ArchInstructionCall * call) if(arch->helper.seek(arch, call->offset, SEEK_SET) < 0) return -1; - printf("%8lx:", call->base + call->offset); + printf("%8lx:", (long)call->base + (long)call->offset); for(i = 0; i < call->size; i++) { if(arch->helper.read(arch, &u8, sizeof(u8)) != sizeof(u8))