From b7a24de37727c0f3d10fb640eb9ebe36e3aed0f2 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 10 May 2013 22:11:28 +0900 Subject: change mrb_bug to get mrb_state and %S formatter --- mrbgems/mruby-struct/src/struct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mrbgems/mruby-struct/src/struct.c') diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index e58394005..2775471fe 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -716,7 +716,7 @@ mrb_struct_equal(mrb_state *mrb, mrb_value s) equal_p = 0; } else if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) { - mrb_bug("inconsistent struct"); /* should never happen */ + mrb_bug(mrb, "inconsistent struct"); /* should never happen */ equal_p = 0; /* This substuture is just to suppress warnings. never called. */ } else { @@ -760,7 +760,7 @@ mrb_struct_eql(mrb_state *mrb, mrb_value s) eql_p = 0; } else if (RSTRUCT_LEN(s) != RSTRUCT_LEN(s2)) { - mrb_bug("inconsistent struct"); /* should never happen */ + mrb_bug(mrb, "inconsistent struct"); /* should never happen */ eql_p = 0; /* This substuture is just to suppress warnings. never called. */ } else { -- cgit v1.2.3