diff options
Diffstat (limited to 'ext/json/ext/generator')
-rw-r--r-- | ext/json/ext/generator/generator.c | 2 | ||||
-rw-r--r-- | ext/json/ext/generator/unicode.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 108e80fd65..94e59f77fc 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -496,7 +496,7 @@ static VALUE cState_s_allocate(VALUE klass) * Configure this State instance with the Hash _opts_, and return * itself. */ -static inline VALUE cState_configure(VALUE self, VALUE opts) +static VALUE cState_configure(VALUE self, VALUE opts) { VALUE tmp; GET_STATE(self); diff --git a/ext/json/ext/generator/unicode.c b/ext/json/ext/generator/unicode.c index 76834eadc5..93e8502b08 100644 --- a/ext/json/ext/generator/unicode.c +++ b/ext/json/ext/generator/unicode.c @@ -144,8 +144,6 @@ void JSON_convert_UTF8_to_JSON(VALUE buffer, VALUE string, ConversionFlags flags rb_str_buf_cat2(buffer, "\\\""); } else if (ch == '\\') { rb_str_buf_cat2(buffer, "\\\\"); - } else if (ch == '/') { - rb_str_buf_cat2(buffer, "\\/"); } else if (ch >= 0x20 && ch <= 0x7f) { rb_str_buf_cat(buffer, (char *) source - 1, 1); } else if (ch == '\n') { |