зеркало из https://github.com/github/ruby.git
001121
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a122fce476
Коммит
1f297b8bfc
|
@ -1029,7 +1029,7 @@ marshal_load(argc, argv)
|
||||||
|
|
||||||
major = r_byte(&arg);
|
major = r_byte(&arg);
|
||||||
minor = r_byte(&arg);
|
minor = r_byte(&arg);
|
||||||
if (major != MARSHAL_MAJOR) {
|
if (major != MARSHAL_MAJOR || minor > MARSHAL_MINOR) {
|
||||||
rb_raise(rb_eTypeError, "incompatible marshal file format (can't be read)\n\
|
rb_raise(rb_eTypeError, "incompatible marshal file format (can't be read)\n\
|
||||||
\tformat version %d.%d required; %d.%d given",
|
\tformat version %d.%d required; %d.%d given",
|
||||||
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
|
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче