* Exception.cs: Cosmetic change to default exception message on
[mono.git] / mono / mini / cfold.c
index c9daabdb7f6c5d4c781fafb13ba90adec44ec3c3..ff187c3fa68a3532a670f634b578c42b94d5fc94 100644 (file)
@@ -29,7 +29,7 @@ mono_is_power_of_two (guint32 val)
                        return; \
                if (inst->inst_i1->opcode == OP_ICONST) {       \
                        inst->opcode = OP_ICONST;       \
-                       inst->inst_c0 = inst->inst_i0->inst_c0 op inst->inst_i1->inst_c0;       \
+                       inst->inst_c0 = (gint32)(inst->inst_i0->inst_c0 op inst->inst_i1->inst_c0);     \
                } \
                 return;
 
@@ -43,7 +43,7 @@ mono_is_power_of_two (guint32 val)
                if (inst->inst_i0->opcode == OP_ICONST) {\
                        if (inst->inst_i1->opcode == OP_ICONST) {       \
                                inst->opcode = OP_ICONST;       \
-                               inst->inst_c0 = inst->inst_i0->inst_c0 op inst->inst_i1->inst_c0;       \
+                               inst->inst_c0 = (gint32)(inst->inst_i0->inst_c0 op inst->inst_i1->inst_c0);     \
                                 return; \
                        } else { \
                                MonoInst *tmp = inst->inst_i0;  \
@@ -150,9 +150,9 @@ mono_is_power_of_two (guint32 val)
                        return; \
                if (inst->inst_i0->inst_i1->opcode == OP_ICONST) {      \
                        if ((cast)inst->inst_i0->inst_i0->inst_c0 op (cast)inst->inst_i0->inst_i1->inst_c0)     \
-                               inst->opcode = CEE_BR;  \
+                               inst->opcode = OP_BR;   \
                        else    \
-                               inst->opcode = CEE_NOP; \
+                               inst->opcode = OP_NOP;  \
                } \
                 return;