svn path=/trunk/mono/; revision=53658
[mono.git] / mono / mini / graph.c
index 45168cf7a7f0353250e07c428ee420dc199ecc6e..16962ee3cb385b7687dc70d0062870d0e2b35e9b 100644 (file)
@@ -164,10 +164,10 @@ mono_print_label (FILE *fp, MonoInst *tree) {
 
        switch (tree->opcode) {
        case OP_ICONST:
-               fprintf (fp, "[%d]", tree->inst_c0);
+               fprintf (fp, "[%ld]", (long)tree->inst_c0);
                break;
        case OP_I8CONST:
-               fprintf (fp, "[%lld]", tree->inst_l);
+               fprintf (fp, "[%lld]", (long long)tree->inst_l);
                break;
        case OP_R8CONST:
                fprintf (fp, "[%f]", *(double*)tree->inst_p0);
@@ -177,10 +177,10 @@ mono_print_label (FILE *fp, MonoInst *tree) {
                break;
        case OP_ARG:
        case OP_LOCAL:
-               fprintf (fp, "[%d]", tree->inst_c0);
+               fprintf (fp, "[%d]", (int)tree->inst_c0);
                break;
        case OP_REGOFFSET:
-               fprintf (fp, "[0x%x(%s)]", tree->inst_offset, mono_arch_regname (tree->inst_basereg));
+               fprintf (fp, "[0x%x(%s)]", (int)tree->inst_offset, mono_arch_regname (tree->inst_basereg));
                break;
        case OP_REGVAR:
                fprintf (fp, "[%s]", mono_arch_regname (tree->dreg));
@@ -201,7 +201,7 @@ mono_print_label (FILE *fp, MonoInst *tree) {
        case OP_VOIDCALLVIRT: {
                MonoCallInst *call = (MonoCallInst*)tree;
                if (call->method) {
-                       if (call->method->signature->hasthis && tree->inst_left) {
+                       if (mono_method_signature (call->method)->hasthis && tree->inst_left) {
                                mono_print_label (fp, tree->inst_left);
                        }
                        fprintf (fp, "[%s]", call->method->name);
@@ -210,7 +210,7 @@ mono_print_label (FILE *fp, MonoInst *tree) {
        }
        case OP_PHI: {
                int i;
-               fprintf (fp, "[%d\\ (", tree->inst_c0);
+               fprintf (fp, "[%d\\ (", (int)tree->inst_c0);
                for (i = 0; i < tree->inst_phi_args [0]; i++) {
                        if (i)
                                fprintf (fp, ",\\ ");