vbscript: Add explicit cast to int for pointer difference type.
Octavian Voicu
octavian.voicu at gmail.com
Sun Sep 18 06:40:33 CDT 2011
--
Fixes compile warning on 64-bit.
---
dlls/vbscript/compile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/vbscript/compile.c b/dlls/vbscript/compile.c
index 1ff3c40..60e4935 100644
--- a/dlls/vbscript/compile.c
+++ b/dlls/vbscript/compile.c
@@ -95,7 +95,7 @@ static void dump_code(compile_ctx_t *ctx)
instr_t *instr;
for(instr = ctx->code->instrs; instr < ctx->code->instrs+ctx->instr_cnt; instr++) {
- TRACE_(vbscript_disas)("%d:\t%s", instr-ctx->code->instrs, instr_info[instr->op].op_str);
+ TRACE_(vbscript_disas)("%d:\t%s", (int)(instr-ctx->code->instrs), instr_info[instr->op].op_str);
dump_instr_arg(instr_info[instr->op].arg1_type, &instr->arg1);
dump_instr_arg(instr_info[instr->op].arg2_type, &instr->arg2);
TRACE_(vbscript_disas)("\n");
--
1.7.4.1
More information about the wine-patches
mailing list