summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-20 20:43:27 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-20 20:43:27 +0900
commitef50e63a63c9b3759a2030816c9e2c5ec4e14cd0 (patch)
treea7d80c195f7421ca6dd3ebd6e1526aae1c18f420 /src/string.c
parent6f22a61135fd077c1dcff2dec92ab215e3a83d79 (diff)
downloadmruby-ef50e63a63c9b3759a2030816c9e2c5ec4e14cd0.tar.gz
mruby-ef50e63a63c9b3759a2030816c9e2c5ec4e14cd0.zip
remove RuntimeError from mrb_state
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 6392b504c..585edf8a3 100644
--- a/src/string.c
+++ b/src/string.c
@@ -100,7 +100,7 @@ str_mod_check(mrb_state *mrb, mrb_value str, char *p, mrb_int len)
struct RString *s = mrb_str_ptr(str);
if (s->ptr != p || s->len != len) {
- mrb_raise(mrb, mrb->eRuntimeError_class, "string modified");
+ mrb_raise(mrb, E_RUNTIME_ERROR, "string modified");
}
}