Merge pull request #3120 from rmalizia44/patch-1

Avoid Error when Compiling with -std=c99 flag
This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-02-25 08:55:41 +09:00
+2
View File
@@ -429,6 +429,8 @@ to_sym(mrb_state *mrb, mrb_value ss)
else {
mrb_value obj = mrb_funcall(mrb, ss, "inspect", 0);
mrb_raisef(mrb, E_TYPE_ERROR, "%S is not a symbol", obj);
/* not reached */
return 0;
}
}