зеркало из https://github.com/github/ruby.git
* 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:
Родитель
b13b3e624b
Коммит
f3750dbf99
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче