[decnum-dynpmcs] r177 committed - Add explicit casts to a few lines. This should help the c++ build.

1 view
Skip to first unread message

codesite...@google.com

unread,
Aug 26, 2009, 8:41:39 PM8/26/09
to decnum-...@googlegroups.com
Revision: 177
Author: arbelo
Date: Wed Aug 26 17:39:45 2009
Log: Add explicit casts to a few lines. This should help the c++ build.


http://code.google.com/p/decnum-dynpmcs/source/detail?r=177

Modified:
/trunk/src/pmc/decnumcontext.pmc

=======================================
--- /trunk/src/pmc/decnumcontext.pmc Wed Aug 26 15:32:54 2009
+++ /trunk/src/pmc/decnumcontext.pmc Wed Aug 26 17:39:45 2009
@@ -79,7 +79,7 @@
}

VTABLE void thaw(visit_info *info) {
- INTVAL context_type;
+ INTVAL context_type, round;
decContext *ctx;

context_type = pmc_type(interp, CONST_STRING(interp,
@@ -94,7 +94,8 @@
ctx->emax = VTABLE_shift_integer(INTERP, info->image_io);
ctx->emin = VTABLE_shift_integer(INTERP, info->image_io);
ctx->clamp = VTABLE_shift_integer(INTERP, info->image_io);
- ctx->round = VTABLE_shift_integer(INTERP, info->image_io);
+ round = VTABLE_shift_integer(INTERP, info->image_io);
+ ctx->round = (enum rounding) round;

}

@@ -233,7 +234,7 @@
case DEC_ROUND_DOWN:
case DEC_ROUND_FLOOR:
case DEC_ROUND_05UP:
- PARROT_DECNUMCONTEXT(SELF)->ctx->round = rnd;
+ PARROT_DECNUMCONTEXT(SELF)->ctx->round = (enum rounding)
rnd;
break;
default:
Parrot_ex_throw_from_c_args(interp, NULL,

Reply all
Reply to author
Forward
0 new messages