summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-14 02:14:31 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-14 02:14:31 +0000
commitf3750dbf9957ce00c1cdf0a145f19505f3292199 (patch)
tree0afcd6ecdc61feca85145a6011ea40123ff7a708 /ext/json
parentb13b3e624b62d321ab5fb84f1aa02e9672a7cc43 (diff)
* ext/json/ext/generator/generator.c (check_max_nesting): wrong
format specifier. a patch from pegacorn <subscriber.jp AT gmail.com>. [ruby-dev:31217] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/ext/generator/generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c
index 446235c..cc639f9 100644
--- a/ext/json/ext/generator/generator.c
+++ b/ext/json/ext/generator/generator.c
@@ -9,7 +9,7 @@
#define check_max_nesting(state, depth) do { \
long current_nesting = 1 + depth; \
if (state->max_nesting != 0 && current_nesting > state->max_nesting) \
- rb_raise(eNestingError, "nesting of %u is too deep", current_nesting); \
+ rb_raise(eNestingError, "nesting of %ld is too deep", current_nesting); \
} while (0);
static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject,