diff options
author | Florian Frank <flori@ping.de> | 2010-08-05 03:10:21 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2010-08-05 03:10:21 +0200 |
commit | 646cc01a6677905fe0ef7fb35aff7bca4fd68123 (patch) | |
tree | 719aba3257f09dcf3c9ccddb71ea04e8199aa856 /ext | |
parent | f0a14faf1d59a5ea86a79d3a5780e8433bfc9e16 (diff) | |
download | json-646cc01a6677905fe0ef7fb35aff7bca4fd68123.tar.gz |
Revert "use method dispatch for generation again"
This reverts commit f0a14faf1d59a5ea86a79d3a5780e8433bfc9e16.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/ext/generator/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 3786b65..7658acd 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -453,7 +453,7 @@ static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self) rb_raise(eNestingError, "nesting of %ld is too deep", depth); } fbuffer_append_char(buffer, '{'); - keys = rb_funcall(self, i_keys, 0); + keys = rb_funcall(self, rb_intern("keys"), 0); for(i = 0; i < RARRAY_LEN(keys); i++) { if (i > 0) fbuffer_append(buffer, delim, delim_len); if (object_nl) { |