diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-23 03:31:55 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-23 03:31:55 +0900 |
| commit | 4523bee95357bed945a58462544441371160056f (patch) | |
| tree | fc7fecb95769eee94f1596b13eb58472281ec656 /src/vm.c | |
| parent | 714b358bb22c99bf653e21f4f9f6e22e24134b28 (diff) | |
| download | mruby-4523bee95357bed945a58462544441371160056f.tar.gz mruby-4523bee95357bed945a58462544441371160056f.zip | |
cast style consistency
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -279,7 +279,7 @@ localjump_error(mrb_state *mrb, const char *kind) snprintf(buf, 256, "unexpected %s", kind); exc = mrb_exc_new(mrb, E_LOCALJUMP_ERROR, buf, strlen(buf)); - mrb->exc = (struct RObject *) mrb_object(exc); + mrb->exc = (struct RObject*)mrb_object(exc); } static void @@ -298,7 +298,7 @@ argnum_error(mrb_state *mrb, int num) mrb->ci->argc, num); } exc = mrb_exc_new(mrb, E_ARGUMENT_ERROR, buf, strlen(buf)); - mrb->exc = (struct RObject *) mrb_object(exc); + mrb->exc = (struct RObject*)mrb_object(exc); } #define SET_TRUE_VALUE(r) {\ @@ -625,7 +625,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) CASE(OP_RAISE) { /* A raise(R(A)) */ - mrb->exc = (struct RObject *) mrb_object(regs[GETARG_A(i)]); + mrb->exc = (struct RObject*)mrb_object(regs[GETARG_A(i)]); goto L_RAISE; } @@ -1573,7 +1573,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) mrb_value msg = pool[GETARG_Bx(i)]; mrb_value exc = mrb_exc_new3(mrb, mrb->eRuntimeError_class, msg); - mrb->exc = (struct RObject *) mrb_object(exc); + mrb->exc = (struct RObject*)mrb_object(exc); goto L_RAISE; } } |
