mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
b13b3e624b
commit
f3750dbf99
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Jul 14 11:08:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/json/ext/generator/generator.c (check_max_nesting): wrong
|
||||
format specifier. a patch from pegacorn <subscriber.jp AT gmail.com>.
|
||||
[ruby-dev:31217]
|
||||
|
||||
Sat Jul 14 02:27:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* numeric.c (int_pow): overflow detection using FIT_SQRT_LONG().
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue