mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2508 from iij/pr-mrb-str-to-cstr-returns-mutable
revert accidental constify.
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ mrb_gc_free_str(mrb_state *mrb, struct RString *str)
|
||||
mrb_free(mrb, str->as.heap.ptr);
|
||||
}
|
||||
|
||||
MRB_API const char*
|
||||
MRB_API char*
|
||||
mrb_str_to_cstr(mrb_state *mrb, mrb_value str0)
|
||||
{
|
||||
struct RString *s;
|
||||
|
||||
Reference in New Issue
Block a user