diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-05 16:32:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-05 16:32:52 +0900 |
| commit | fce644df5913ca680c304e48e36eea915e386ab1 (patch) | |
| tree | 839c355448168a6eb92dfd80da877f7522a65fdb /src | |
| parent | e41fd5c0d6417f50866acd8e7505b4a3d3d6e79e (diff) | |
| parent | 412b9eb827ead65f02c1e8e216dbd475b6b644a5 (diff) | |
| download | mruby-fce644df5913ca680c304e48e36eea915e386ab1.tar.gz mruby-fce644df5913ca680c304e48e36eea915e386ab1.zip | |
Merge pull request #2508 from iij/pr-mrb-str-to-cstr-returns-mutable
revert accidental constify.
Diffstat (limited to 'src')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 8ac5a436a..66777d9e5 100644 --- a/src/string.c +++ b/src/string.c @@ -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; |
