From 35e2779575677b68d92dba937db86c658740b012 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 20 Mar 2023 22:55:33 +0900 Subject: [PATCH] Small cosmetic changes (adjust indent, and remove extra space) --- mrbgems/mruby-eval/src/eval.c | 2 +- mrbgems/mruby-proc-binding/src/proc-binding.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mrbgems/mruby-eval/src/eval.c b/mrbgems/mruby-eval/src/eval.c index 27c6b22fd..085d5bad0 100644 --- a/mrbgems/mruby-eval/src/eval.c +++ b/mrbgems/mruby-eval/src/eval.c @@ -26,7 +26,7 @@ create_proc_from_string(mrb_state *mrb, const char *s, mrb_int len, mrb_value bi if (!mrb_class_defined_id(mrb, MRB_SYM(Binding)) || !mrb_obj_is_kind_of(mrb, binding, mrb_class_get_id(mrb, MRB_SYM(Binding)))) { mrb_raisef(mrb, E_TYPE_ERROR, "wrong argument type %C (expected binding)", - mrb_obj_class(mrb, binding)); + mrb_obj_class(mrb, binding)); } scope_obj = mrb_iv_get(mrb, binding, MRB_SYM(proc)); mrb_check_type(mrb, scope_obj, MRB_TT_PROC); diff --git a/mrbgems/mruby-proc-binding/src/proc-binding.c b/mrbgems/mruby-proc-binding/src/proc-binding.c index d176034d2..b95edbc1b 100644 --- a/mrbgems/mruby-proc-binding/src/proc-binding.c +++ b/mrbgems/mruby-proc-binding/src/proc-binding.c @@ -31,7 +31,7 @@ mrb_proc_binding(mrb_state *mrb, mrb_value procval) } proc = mrb_binding_wrap_lvspace(mrb, proc, &env); - mrb_iv_set(mrb, binding, MRB_SYM(proc), mrb_obj_value((void *)proc)); + mrb_iv_set(mrb, binding, MRB_SYM(proc), mrb_obj_value((void*)proc)); mrb_iv_set(mrb, binding, MRB_SYM(recv), receiver); mrb_iv_set(mrb, binding, MRB_SYM(env), mrb_obj_value(env)); mrb_iv_set(mrb, binding, MRB_SYM(source_location), mrb_proc_source_location(mrb, mrb_proc_ptr(procval)));